Add bootstrap REST handler for verifying server config (#8550)

This commit is contained in:
Harshavardhana
2019-11-22 12:45:13 -08:00
committed by GitHub
parent 890b493a2e
commit c3771df641
8 changed files with 276 additions and 19 deletions

View File

@@ -149,8 +149,4 @@ func registerLockRESTHandlers(router *mux.Router, endpointZones EndpointZones) {
globalLockServers[endpoint] = lockServer.ll
}
}
// If none of the routes match add default error handler routes
router.NotFoundHandler = http.HandlerFunc(httpTraceAll(errorResponseHandler))
router.MethodNotAllowedHandler = http.HandlerFunc(httpTraceAll(errorResponseHandler))
}