@ -33,8 +33,10 @@ func (hs *HTTPServer) registerRoutes() {
r . Get ( "/invite/:code" , hs . Index )
// authed views
r . Get ( "/" , reqSignedIn , hs . Index )
r . Get ( "/profile/" , reqSignedIn , hs . Index )
r . Get ( "/profile/password" , reqSignedIn , hs . Index )
r . Get ( "/.well-known/change-password" , redirectToChangePassword )
r . Get ( "/profile/switch-org/:id" , reqSignedIn , hs . ChangeActiveOrgAndRedirectToHome )
r . Get ( "/org/" , reqOrgAdmin , hs . Index )
r . Get ( "/org/new" , reqGrafanaAdmin , hs . Index )
@ -71,6 +73,7 @@ func (hs *HTTPServer) registerRoutes() {
r . Get ( "/d/:uid" , reqSignedIn , redirectFromLegacyPanelEditURL , hs . Index )
r . Get ( "/dashboard/db/:slug" , reqSignedIn , redirectFromLegacyDashboardURL , hs . Index )
r . Get ( "/dashboard/script/*" , reqSignedIn , hs . Index )
r . Get ( "/dashboard/new" , reqSignedIn , hs . Index )
r . Get ( "/dashboard-solo/snapshot/*" , hs . Index )
r . Get ( "/d-solo/:uid/:slug" , reqSignedIn , hs . Index )
r . Get ( "/d-solo/:uid" , reqSignedIn , hs . Index )
@ -442,6 +445,4 @@ func (hs *HTTPServer) registerRoutes() {
r . Get ( "/api/snapshots/:key" , Wrap ( GetDashboardSnapshot ) )
r . Get ( "/api/snapshots-delete/:deleteKey" , reqSnapshotPublicModeOrSignedIn , Wrap ( DeleteDashboardSnapshotByDeleteKey ) )
r . Delete ( "/api/snapshots/:key" , reqEditorRole , Wrap ( DeleteDashboardSnapshot ) )
r . Get ( "/*" , reqSignedIn , hs . Index )
}