|
|
|
@ -332,8 +332,8 @@ func registerAPIRouter(router *mux.Router) { |
|
|
|
|
maxClients(collectAPIStats("listbuckets", httpTraceAll(api.ListBucketsHandler)))) |
|
|
|
|
|
|
|
|
|
// If none of the routes match add default error handler routes
|
|
|
|
|
apiRouter.NotFoundHandler = http.HandlerFunc(collectAPIStats("notfound", httpTraceAll(errorResponseHandler))) |
|
|
|
|
apiRouter.MethodNotAllowedHandler = http.HandlerFunc(collectAPIStats("methodnotallowed", httpTraceAll(errorResponseHandler))) |
|
|
|
|
apiRouter.NotFoundHandler = collectAPIStats("notfound", httpTraceAll(errorResponseHandler)) |
|
|
|
|
apiRouter.MethodNotAllowedHandler = collectAPIStats("methodnotallowed", httpTraceAll(errorResponseHandler)) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|