Storage: Add HTTP endpoint for object store service (#56214)

This commit is contained in:
Ryan McKinley
2022-10-04 09:40:15 -07:00
committed by GitHub
parent bba6eb1f2d
commit d5e2713168
5 changed files with 309 additions and 1 deletions

View File

@@ -261,7 +261,13 @@ func (hs *HTTPServer) registerRoutes() {
})
if hs.Features.IsEnabled(featuremgmt.FlagStorage) {
// Will eventually be replaced with the 'object' route
apiRoute.Group("/storage", hs.StorageService.RegisterHTTPRoutes)
// Allow HTTP access to the object storage feature (dev only for now)
if hs.Features.IsEnabled(featuremgmt.FlagGrpcServer) {
apiRoute.Group("/object", hs.httpObjectStore.RegisterHTTPRoutes)
}
}
if hs.Features.IsEnabled(featuremgmt.FlagPanelTitleSearch) {