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
|
instrh := prometheus.InstrumentHandler
|
||||||
|
|
||||||
router.Get("/", func(w http.ResponseWriter, r *http.Request) {
|
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))
|
router.Get("/graph", instrf("graph", h.graph))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue