package handlers import ( "encoding/json" "net/http" ) type HealthResponse struct { Status string `json:"status"` } func HealthHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(HealthResponse{Status: "ok"}) }