mirror of
https://github.com/minio/minio.git
synced 2025-11-20 01:50:24 -05:00
router: PathPrefix router was wrong. (#3172)
This commit is contained in:
@@ -34,7 +34,7 @@ func registerAPIRouter(mux *router.Router) {
|
||||
}
|
||||
|
||||
// API Router
|
||||
apiRouter := router.NewRouter().PathPrefix("/").Subrouter()
|
||||
apiRouter := mux.NewRoute().PathPrefix("").Subrouter()
|
||||
|
||||
// Bucket router
|
||||
bucket := apiRouter.PathPrefix("/{bucket}").Subrouter()
|
||||
|
||||
Reference in New Issue
Block a user