Skip to content

Commit f1285a8

Browse files
Fix integration build
1 parent 2d26cdc commit f1285a8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,8 @@ import (
1919

2020
/* SetupHandlers sets up the necessary API end points */
2121
func SetupHandlers(r *mux.Router) {
22+
r.HandleFunc("/_blobber_info", RateLimitByCommmitRL(common.ToJSONResponse(GetBlobberInfo)))
2223
setupHandlers(r)
23-
24-
r.HandleFunc("/v1/file/list/{allocation}",
25-
RateLimitByObjectRL(WithBlobberRegisteredCondition(common.ToJSONOrNotResponse(WithConnectionNotRespond(ListHandler))))).
26-
Methods(http.MethodGet, http.MethodOptions)
27-
r.HandleFunc("/v1/file/upload/{allocation}",
28-
RateLimitByFileRL(WithBlobberRegisteredCondition(common.ToJSONOrNotResponse(WithConnectionNotRespond(UploadHandler)))))
29-
r.HandleFunc("/v1/file/download/{allocation}",
30-
RateLimitByFileRL(ToByteStreamOrNot(WithBlobberRegisteredCondition(WithConnectionNotRespond(DownloadHandler))))).
31-
Methods(http.MethodGet, http.MethodOptions)
3224
}
3325

3426
func WithReadOnlyConnectionNotRespond(handler common.JSONResponderOrNotF) common.JSONResponderOrNotF {

0 commit comments

Comments
 (0)