package handler import ( "encoding/json" "net/http" ) func HandlHealthChecks(mux *http.ServeMux) { routes := []Route{{"GET /health", healthCheck}} NewBaseHandler(mux, routes) } func healthCheck(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]string{"status": "ok"}) }