Open platform to collect and prioritize feedback
fix: ToS and Privacy Policy should not require tenant (#474)
Guilherme Oenning5e90a45e2ca5
diff --git a/app/cmd/routes.go b/app/cmd/routes.goindex 5aaf38b43..bb4310c4a 100644--- a/app/cmd/routes.go+++ b/app/cmd/routes.go@@ -16,9 +16,11 @@ func routes(r *web.Engine) *web.Engine {r.Use(middlewares.Secure())r.Use(middlewares.Compress())- robots := r.Group()+ files := r.Group(){- robots.Get("/robots.txt", handlers.RobotsTXT())+ files.Get("/robots.txt", handlers.RobotsTXT())+ files.Get("/privacy", handlers.LegalPage("Privacy Policy", "privacy.md"))+ files.Get("/terms", handlers.LegalPage("Terms of Service", "terms.md"))}assets := r.Group()@@ -34,8 +36,6 @@ func routes(r *web.Engine) *web.Engine {noTenant := r.Group(){- noTenant.Get("/privacy", handlers.LegalPage("Privacy Policy", "privacy.md"))- noTenant.Get("/terms", handlers.LegalPage("Terms of Service", "terms.md"))noTenant.Get("/-/health", handlers.Health())noTenant.Post("/api/tenants", handlers.CreateTenant())