Dashboards: load from storage (#51949)

This commit is contained in:
Ryan McKinley
2022-07-14 15:36:17 -07:00
committed by GitHub
parent eab03aa207
commit da1701ce57
19 changed files with 262 additions and 28 deletions
+4
View File
@@ -108,6 +108,10 @@ func (hs *HTTPServer) registerRoutes() {
r.Get("/dashboards/*", reqSignedIn, hs.Index)
r.Get("/goto/:uid", reqSignedIn, hs.redirectFromShortURL, hs.Index)
if hs.Features.IsEnabled(featuremgmt.FlagDashboardsFromStorage) {
r.Get("/g/*", reqSignedIn, hs.Index)
}
if hs.Features.IsEnabled(featuremgmt.FlagPublicDashboards) {
r.Get("/public-dashboards/:accessToken", publicdashboardsapi.SetPublicDashboardFlag(), hs.Index)
}