Change /graph to /query as default homepage in Go backend
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
cdc4bf0ebc
commit
b778c0a249
|
@ -81,7 +81,7 @@ var reactRouterAgentPaths = []string{
|
||||||
// Paths that are handled by the React router when the Agent mode is not set.
|
// Paths that are handled by the React router when the Agent mode is not set.
|
||||||
var reactRouterServerPaths = []string{
|
var reactRouterServerPaths = []string{
|
||||||
"/alerts",
|
"/alerts",
|
||||||
"/graph",
|
"/query",
|
||||||
"/rules",
|
"/rules",
|
||||||
"/tsdb-status",
|
"/tsdb-status",
|
||||||
}
|
}
|
||||||
|
@ -361,7 +361,7 @@ func New(logger log.Logger, o *Options) *Handler {
|
||||||
router = router.WithPrefix(o.RoutePrefix)
|
router = router.WithPrefix(o.RoutePrefix)
|
||||||
}
|
}
|
||||||
|
|
||||||
homePage := "/graph"
|
homePage := "/query"
|
||||||
if o.IsAgent {
|
if o.IsAgent {
|
||||||
homePage = "/agent"
|
homePage = "/agent"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue