mirror of
https://github.com/minio/minio.git
synced 2025-02-02 17:35:58 -05:00
Merge pull request #26 from fkautz/pr_out_adding_handler_for_listing_objects_to_both_trailing_and_non_trailing_url
This commit is contained in:
commit
9a4c8bfaac
@ -26,6 +26,7 @@ func HttpHandler(storage *mstorage.Storage) http.Handler {
|
||||
storage: storage,
|
||||
}
|
||||
mux.HandleFunc("/", api.listBucketsHandler).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.putObjectHandler).Methods("PUT")
|
||||
|
Loading…
x
Reference in New Issue
Block a user