mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Adding handler for listing objects to both trailing and non-trailing url
This commit is contained in:
@@ -26,6 +26,7 @@ func HttpHandler(storage *mstorage.Storage) http.Handler {
|
|||||||
storage: storage,
|
storage: storage,
|
||||||
}
|
}
|
||||||
mux.HandleFunc("/", api.listBucketsHandler).Methods("GET")
|
mux.HandleFunc("/", api.listBucketsHandler).Methods("GET")
|
||||||
|
mux.HandleFunc("/{bucket}", api.listObjectsHandler).Methods("GET")
|
||||||
mux.HandleFunc("/{bucket}/", api.listObjectsHandler).Methods("GET")
|
mux.HandleFunc("/{bucket}/", api.listObjectsHandler).Methods("GET")
|
||||||
mux.HandleFunc("/{bucket}/{object:.*}", api.getObjectHandler).Methods("GET")
|
mux.HandleFunc("/{bucket}/{object:.*}", api.getObjectHandler).Methods("GET")
|
||||||
mux.HandleFunc("/{bucket}/{object:.*}", api.putObjectHandler).Methods("PUT")
|
mux.HandleFunc("/{bucket}/{object:.*}", api.putObjectHandler).Methods("PUT")
|
||||||
|
|||||||
Reference in New Issue
Block a user