|
|
|
@ -33,17 +33,17 @@ func (hs *HTTPServer) registerRoutes() { |
|
|
|
|
r.Get("/profile/", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/profile/password", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/profile/switch-org/:id", reqSignedIn, hs.ChangeActiveOrgAndRedirectToHome) |
|
|
|
|
r.Get("/org/", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/org/new", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/datasources/", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/datasources/new", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/datasources/edit/*", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/org/users", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/org/users/new", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/org/users/invite", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/org/teams", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/org/teams/*", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/org/apikeys/", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/org/", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/org/new", reqGrafanaAdmin, hs.Index) |
|
|
|
|
r.Get("/datasources/", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/datasources/new", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/datasources/edit/*", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/org/users", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/org/users/new", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/org/users/invite", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/org/teams", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/org/teams/*", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/org/apikeys/", reqOrgAdmin, hs.Index) |
|
|
|
|
r.Get("/dashboard/import/", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/configuration", reqGrafanaAdmin, hs.Index) |
|
|
|
|
r.Get("/admin", reqGrafanaAdmin, hs.Index) |
|
|
|
@ -77,8 +77,8 @@ func (hs *HTTPServer) registerRoutes() { |
|
|
|
|
|
|
|
|
|
r.Get("/playlists/", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/playlists/*", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/alerting/", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/alerting/*", reqSignedIn, hs.Index) |
|
|
|
|
r.Get("/alerting/", reqEditorRole, hs.Index) |
|
|
|
|
r.Get("/alerting/*", reqEditorRole, hs.Index) |
|
|
|
|
|
|
|
|
|
// sign up
|
|
|
|
|
r.Get("/signup", hs.Index) |
|
|
|
|