File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
code/go/0chain.net/blobbercore/handler Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,8 @@ import (
19
19
20
20
/* SetupHandlers sets up the necessary API end points */
21
21
func SetupHandlers (r * mux.Router ) {
22
+ r .HandleFunc ("/_blobber_info" , RateLimitByCommmitRL (common .ToJSONResponse (GetBlobberInfo )))
22
23
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 )
32
24
}
33
25
34
26
func WithReadOnlyConnectionNotRespond (handler common.JSONResponderOrNotF ) common.JSONResponderOrNotF {
You can’t perform that action at this time.
0 commit comments