|
|
|
@ -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)) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|