mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 08:35:43 -06:00
Routing: Update routing to require sign in on every route (#19118)
* Update routing to require sign in on every route * Review update
This commit is contained in:
parent
a28aefa370
commit
97ff75732d
@ -24,7 +24,6 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
r := hs.RouteRegister
|
||||
|
||||
// not logged in views
|
||||
r.Get("/", reqSignedIn, hs.Index)
|
||||
r.Get("/logout", hs.Logout)
|
||||
r.Post("/login", quota("session"), bind(dtos.LoginCommand{}), Wrap(hs.LoginPost))
|
||||
r.Get("/login/:name", quota("session"), hs.OAuthLogin)
|
||||
@ -422,4 +421,6 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
r.Get("/api/snapshots/:key", GetDashboardSnapshot)
|
||||
r.Get("/api/snapshots-delete/:deleteKey", reqSnapshotPublicModeOrSignedIn, Wrap(DeleteDashboardSnapshotByDeleteKey))
|
||||
r.Delete("/api/snapshots/:key", reqEditorRole, Wrap(DeleteDashboardSnapshot))
|
||||
|
||||
r.Get("/*", reqSignedIn, hs.Index)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user