mirror of
https://github.com/restic/rest-server.git
synced 2025-12-08 06:09:47 +00:00
Merge 1d7da8dd37 into 0cc4d235d4
This commit is contained in:
commit
8069311bf2
1 changed files with 3 additions and 0 deletions
3
mux.go
3
mux.go
|
|
@ -105,6 +105,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue