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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue