added hub healthz endpoint

This commit is contained in:
2026-02-16 14:13:35 +01:00
parent 17b1d36bf9
commit a345cb93c3
+6
View File
@@ -85,6 +85,12 @@ func main() {
// Build HTTP mux
mux := http.NewServeMux()
// Health check endpoint — bypasses auth (for k8s probes)
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("ok"))
})
// API routes (no dashboard auth for report ingest)
mux.Handle("/api/v1/", apiHandler)