E2C: Set up page route so cloud-migrations doesn't 404 (#89947)

This commit is contained in:
Josh Hunt 2024-07-02 17:11:18 +01:00 committed by GitHub
parent 9740ce3f58
commit 52ea6236d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,6 +108,10 @@ func (hs *HTTPServer) registerRoutes() {
r.Get("/admin/storage/*", reqSignedIn, hs.Index)
}
if hs.Features.IsEnabledGlobally(featuremgmt.FlagOnPremToCloudMigrations) {
r.Get("/admin/migrate-to-cloud", reqOrgAdmin, hs.Index)
}
// feature toggle admin page
if hs.Features.IsEnabledGlobally(featuremgmt.FlagFeatureToggleAdminPage) {
r.Get("/admin/featuretoggles", authorize(ac.EvalPermission(ac.ActionFeatureManagementRead)), hs.Index)