mirror of
https://github.com/grafana/grafana.git
synced 2025-01-12 17:12:32 -06:00
Storage: use FlagStorageLocalUpload
for HTTP API
This commit is contained in:
parent
af8fbc16d6
commit
484bd0b557
@ -217,8 +217,10 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
orgRoute.Get("/list/*", routing.Wrap(hs.StorageService.List))
|
||||
orgRoute.Get("/read/*", routing.Wrap(hs.StorageService.Read))
|
||||
|
||||
orgRoute.Delete("/delete/*", reqSignedIn, routing.Wrap(hs.StorageService.Delete))
|
||||
orgRoute.Post("/upload", reqSignedIn, routing.Wrap(hs.StorageService.Upload))
|
||||
if hs.Features.IsEnabled(featuremgmt.FlagStorageLocalUpload) {
|
||||
orgRoute.Delete("/delete/*", reqSignedIn, routing.Wrap(hs.StorageService.Delete))
|
||||
orgRoute.Post("/upload", reqSignedIn, routing.Wrap(hs.StorageService.Upload))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user