diff --git a/cmd/storage-rest-common.go b/cmd/storage-rest-common.go index 9b2133af8..ec7dbe5f3 100644 --- a/cmd/storage-rest-common.go +++ b/cmd/storage-rest-common.go @@ -16,7 +16,7 @@ package cmd -const storageRESTVersion = "v1" +const storageRESTVersion = "v2" const storageRESTPath = minioReservedBucketPath + "/storage/" + storageRESTVersion + "/" const ( diff --git a/cmd/storage-rest-server.go b/cmd/storage-rest-server.go index a7735bcb6..f0701864a 100644 --- a/cmd/storage-rest-server.go +++ b/cmd/storage-rest-server.go @@ -378,5 +378,6 @@ func registerStorageRESTHandlers(router *mux.Router, endpoints EndpointList) { subrouter.Methods(http.MethodPost).Path("/" + storageRESTMethodRenameFile).HandlerFunc(httpTraceHdrs(server.RenameFileHandler)). Queries(restQueries(storageRESTSrcVolume, storageRESTSrcPath, storageRESTDstVolume, storageRESTDstPath)...) + subrouter.NotFoundHandler = http.HandlerFunc(httpTraceAll(notFoundHandler)) } }