mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-05 13:13:10 -06:00
Rename endpoints
This commit is contained in:
parent
fb2427908a
commit
e0fb981083
|
|
@ -379,10 +379,10 @@ func (b *BaseDendrite) SetupAndServeHTTP(
|
||||||
internalRouter.Handle("/metrics", httputil.WrapHandlerInBasicAuth(promhttp.Handler(), b.Cfg.Global.Metrics.BasicAuth))
|
internalRouter.Handle("/metrics", httputil.WrapHandlerInBasicAuth(promhttp.Handler(), b.Cfg.Global.Metrics.BasicAuth))
|
||||||
}
|
}
|
||||||
|
|
||||||
b.DendriteAdminMux.HandleFunc("/started", func(w http.ResponseWriter, r *http.Request) {
|
b.DendriteAdminMux.HandleFunc("/monitor/up", func(w http.ResponseWriter, r *http.Request) {
|
||||||
w.WriteHeader(200)
|
w.WriteHeader(200)
|
||||||
})
|
})
|
||||||
b.DendriteAdminMux.HandleFunc("/health", func(w http.ResponseWriter, r *http.Request) {
|
b.DendriteAdminMux.HandleFunc("/monitor/health", func(w http.ResponseWriter, r *http.Request) {
|
||||||
if b.ProcessContext.IsDegraded() {
|
if b.ProcessContext.IsDegraded() {
|
||||||
w.WriteHeader(503)
|
w.WriteHeader(503)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue