Files
mtusi2026lab2/internal/handler/health.go
T
2026-10-02 11:45:26 +03:00

18 lines
305 B
Go

package handler
import (
"encoding/json"
"net/http"
"mtusi2026-messenger/internal/dto"
)
func Health(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_ = json.NewEncoder(w).Encode(dto.HealthResponse{
Status: "ok",
})
}