This commit is contained in:
Alessandro (Ale) Segala
2024-07-10 13:01:33 -07:00
committed by GitHub

3
mux.go
View File

@@ -98,6 +98,9 @@ func NewHandler(server *Server) (http.Handler, error) {
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)
var handler http.Handler = mux