From 3026f77cfce464755a85597d930673e984475cc6 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Tue, 20 Jan 2015 19:10:52 -0800 Subject: [PATCH] Adding handler for listing objects to both trailing and non-trailing url --- pkg/webapi/minioapi/minioapi.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/webapi/minioapi/minioapi.go b/pkg/webapi/minioapi/minioapi.go index b5974a892..c45e1b139 100644 --- a/pkg/webapi/minioapi/minioapi.go +++ b/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")