added hub healthz endpoint
This commit is contained in:
@@ -85,6 +85,12 @@ func main() {
|
|||||||
// Build HTTP mux
|
// Build HTTP mux
|
||||||
mux := http.NewServeMux()
|
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)
|
// API routes (no dashboard auth for report ingest)
|
||||||
mux.Handle("/api/v1/", apiHandler)
|
mux.Handle("/api/v1/", apiHandler)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user