From 52ea6236d4891a61e9b60f967369d599714103e3 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Tue, 2 Jul 2024 17:11:18 +0100 Subject: [PATCH] E2C: Set up page route so cloud-migrations doesn't 404 (#89947) --- pkg/api/api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/api/api.go b/pkg/api/api.go index c6c1ee022cd..fdec78dc0ff 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -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)