This commit is contained in:
Alessandro (Ale) Segala 2025-10-04 10:22:40 -07:00 committed by GitHub
commit db36555ca1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

3
mux.go
View file

@ -105,6 +105,9 @@ func NewHandler(server *Server) (http.Handler, error) {
mux.HandleFunc("/metrics", server.wrapMetricsAuth(promhttp.Handler().ServeHTTP)) mux.HandleFunc("/metrics", server.wrapMetricsAuth(promhttp.Handler().ServeHTTP))
} }
} }
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNoContent)
})
mux.Handle("/", server) mux.Handle("/", server)
var handler http.Handler = mux var handler http.Handler = mux