Merge pull request #26 from fkautz/pr_out_adding_handler_for_listing_objects_to_both_trailing_and_non_trailing_url

master
Frederick F. Kautz IV 10 years ago
commit 9a4c8bfaac
  1. 1
      pkg/webapi/minioapi/minioapi.go

@ -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…
Cancel
Save