Skip to content

Commit 1e50600

Browse files
Fix
1 parent c78a51b commit 1e50600

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code/go/0chain.net/blobbercore/handler/handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@ func setupHandlers(r *mux.Router) {
273273
RateLimitByGeneralRL(WithTxHandler(LoadPlaylistFile))).
274274
Methods(http.MethodGet, http.MethodOptions)
275275

276-
r.HandleFunc("/v1/file/list/{allocation}",
276+
s.HandleFunc("/v1/file/list/{allocation}",
277277
RateLimitByObjectRL(common.ToJSONResponse(WithReadOnlyConnection(ListHandler)))).
278278
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)
281281
}
282282

283283
func WithReadOnlyConnection(handler common.JSONResponderF) common.JSONResponderF {

0 commit comments

Comments
 (0)