mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08:00
web: fix double prefix
This commit is contained in:
parent
bfa37c8ee3
commit
9063f8dedd
|
@ -171,7 +171,7 @@ func New(o *Options) *Handler {
|
|||
instrf := prometheus.InstrumentHandlerFunc
|
||||
|
||||
router.Get("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
router.Redirect(w, r, path.Join(o.ExternalURL.Path, "/graph"), http.StatusFound)
|
||||
http.Redirect(w, r, path.Join(o.ExternalURL.Path, "/graph"), http.StatusFound)
|
||||
})
|
||||
|
||||
router.Get("/alerts", instrf("alerts", h.alerts))
|
||||
|
|
Loading…
Reference in a new issue