added hub healthz endpoint
This commit is contained in:
1 parent
17b1d36bf9
commit
a345cb93c3
1 file changed
+6
@@ -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