Files
mtusi2026lab2/internal/handler/health.go
T
mydan 196e118ede
Skeleton contracts / contracts (pull_request) Canceled after 0s
chore(solution): pull lab1 solution
2026-10-29 10:47:47 +03:00

12 lines
290 B
Go

package handler
import "net/http"
func (h *Handler) Live(w http.ResponseWriter, _ *http.Request) {
writeJSON(w, http.StatusOK, healthResponse{Status: "ok"})
}
func (h *Handler) Ready(w http.ResponseWriter, _ *http.Request) {
writeJSON(w, http.StatusOK, healthResponse{Status: "ok"})
}