mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 07:52:28 +00:00
Fix redirect path
This commit is contained in:
parent
d7b21f2fdb
commit
896928ad00
@ -159,7 +159,7 @@ func New(st local.Storage, qe *promql.Engine, rm *rules.Manager, status *Prometh
|
||||
instrh := prometheus.InstrumentHandler
|
||||
|
||||
router.Get("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, "/", http.StatusFound)
|
||||
http.Redirect(w, r, "/graph", http.StatusFound)
|
||||
})
|
||||
router.Get("/graph", instrf("graph", h.graph))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user