Feature toggles: Remove dashboardEmbed toggle (#86587)

This commit is contained in:
Alex Khomenko
2024-04-19 12:48:08 +02:00
committed by GitHub
parent c5ca90747d
commit 44e1bce55a
8 changed files with 2 additions and 27 deletions

View File

@@ -151,10 +151,6 @@ func (hs *HTTPServer) registerRoutes() {
r.Get("/dashboards/*", reqSignedIn, hs.Index)
r.Get("/goto/:uid", reqSignedIn, hs.redirectFromShortURL, hs.Index)
if hs.Features.IsEnabledGlobally(featuremgmt.FlagDashboardEmbed) {
r.Get("/d-embed", reqSignedIn, middleware.AddAllowEmbeddingHeader(), hs.Index)
}
if hs.Features.IsEnabledGlobally(featuremgmt.FlagPublicDashboards) && hs.Cfg.PublicDashboardsEnabled {
// list public dashboards
r.Get("/public-dashboards/list", reqSignedIn, hs.Index)