File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
code/go/0chain.net/blobbercore/handler Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -273,11 +273,11 @@ func setupHandlers(r *mux.Router) {
273
273
RateLimitByGeneralRL (WithTxHandler (LoadPlaylistFile ))).
274
274
Methods (http .MethodGet , http .MethodOptions )
275
275
276
- r .HandleFunc ("/v1/file/list/{allocation}" ,
276
+ s .HandleFunc ("/v1/file/list/{allocation}" ,
277
277
RateLimitByObjectRL (common .ToJSONResponse (WithReadOnlyConnection (ListHandler )))).
278
278
Methods (http .MethodGet , http .MethodOptions )
279
- r .HandleFunc ("/v1/file/upload/{allocation}" , RateLimitByFileRL (common .ToJSONResponse (WithConnection (UploadHandler ))))
280
- r .HandleFunc ("/v1/file/download/{allocation}" , RateLimitByFileRL (common .ToByteStream (WithConnection (DownloadHandler )))).Methods (http .MethodGet , http .MethodOptions )
279
+ s .HandleFunc ("/v1/file/upload/{allocation}" , RateLimitByFileRL (common .ToJSONResponse (WithConnection (UploadHandler ))))
280
+ s .HandleFunc ("/v1/file/download/{allocation}" , RateLimitByFileRL (common .ToByteStream (WithConnection (DownloadHandler )))).Methods (http .MethodGet , http .MethodOptions )
281
281
}
282
282
283
283
func WithReadOnlyConnection (handler common.JSONResponderF ) common.JSONResponderF {
You can’t perform that action at this time.
0 commit comments