added hub healthz endpoint
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user