diff --git a/pkg/api/api.go b/pkg/api/api.go index bcfc188770d..6a838206ba9 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -164,6 +164,9 @@ func (hs *HTTPServer) registerRoutes() { r.Get("/d/:uid", reqSignedIn, redirectFromLegacyPanelEditURL, hs.Index) r.Get("/dashboard/script/*", reqSignedIn, hs.Index) r.Get("/dashboard/new", reqSignedIn, hs.Index) + if featuremgmt.AnyEnabled(hs.Features, featuremgmt.FlagDashboardLibrary, featuremgmt.FlagSuggestedDashboards, featuremgmt.FlagDashboardTemplates) { + r.Get("/dashboard/template", reqSignedIn, hs.Index) + } r.Get("/dashboard-solo/snapshot/*", hs.Index) r.Get("/dashboard/provisioning/*", reqSignedIn, hs.Index) r.Get("/d-solo/:uid/:slug", reqSignedIn, hs.Index)