Open platform to collect and prioritize feedback
Missing route
Matt Roberts1003796967de
diff --git a/app/cmd/routes.go b/app/cmd/routes.goindex 87da777f7..8790da472 100644--- a/app/cmd/routes.go+++ b/app/cmd/routes.go@@ -73,7 +73,7 @@ func routes(r *web.Engine) *web.Engine {r.Get("/oauth/:provider", handlers.SignInByOAuth())r.Get("/oauth/:provider/callback", handlers.OAuthCallback())- //Starting from this step, a Tenant is required+ // Starting from this step, a Tenant is requiredr.Use(middlewares.RequireTenant())r.Get("/sitemap.xml", handlers.Sitemap())@@ -98,7 +98,7 @@ func routes(r *web.Engine) *web.Engine {r.Get("/oauth/:provider/token", handlers.OAuthToken())r.Get("/oauth/:provider/echo", handlers.OAuthEcho())- //If tenant is pending, block it from using any other route+ // If tenant is pending, block it from using any other router.Use(middlewares.BlockPendingTenants())r.Get("/signin", handlers.SignInPage())@@ -108,7 +108,7 @@ func routes(r *web.Engine) *web.Engine {r.Post("/_api/signin/complete", handlers.CompleteSignInProfile())r.Post("/_api/signin", handlers.SignInByEmail())- //Block if it's private tenant with unauthenticated user+ // Block if it's private tenant with unauthenticated userr.Use(middlewares.CheckTenantPrivacy())r.Get("/", handlers.Index())@@ -117,12 +117,13 @@ func routes(r *web.Engine) *web.Engine {ui := r.Group(){- //From this step, a User is required+ // From this step, a User is requiredui.Use(middlewares.IsAuthenticated())ui.Get("/settings", handlers.UserSettings())ui.Get("/notifications", handlers.Notifications())ui.Get("/notifications/:id", handlers.ReadNotification())+ ui.Get("/_api/notifications/unread", handlers.GetAllNotifications())ui.Get("/change-email/verify", handlers.VerifyChangeEmailKey())ui.Delete("/_api/user", handlers.DeleteUser())@@ -148,7 +149,7 @@ func routes(r *web.Engine) *web.Engine {ui.Get("/admin/authentication", handlers.ManageAuthentication())ui.Get("/_api/admin/oauth/:provider", handlers.GetOAuthConfig())- //From this step, only Administrators are allowed+ // From this step, only Administrators are allowedui.Use(middlewares.IsAuthorized(enum.RoleAdministrator))ui.Get("/admin/export", handlers.Page("Export · Site Settings", "", "Administration/pages/Export.page"))