From 8636e189e6c755638dfe827d9e911a9426597600 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Thu, 22 Jan 2015 16:19:55 -0800 Subject: [PATCH] Cosmetic change, sorting routes --- pkg/webapi/minioapi/minioapi.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/webapi/minioapi/minioapi.go b/pkg/webapi/minioapi/minioapi.go index a61a1e6fd..143c54fbf 100644 --- a/pkg/webapi/minioapi/minioapi.go +++ b/pkg/webapi/minioapi/minioapi.go @@ -42,13 +42,14 @@ func HttpHandler(storage mstorage.Storage) http.Handler { api := minioApi{ storage: storage, } + mux.HandleFunc("/", api.listBucketsHandler).Methods("GET") - mux.HandleFunc("/{bucket}", api.putBucketHandler).Methods("PUT") mux.HandleFunc("/{bucket}", api.listObjectsHandler).Methods("GET") + mux.HandleFunc("/{bucket}", api.putBucketHandler).Methods("PUT") mux.HandleFunc("/{bucket}/", api.listObjectsHandler).Methods("GET") mux.HandleFunc("/{bucket}/{object:.*}", api.getObjectHandler).Methods("GET") - mux.HandleFunc("/{bucket}/{object:.*}", api.putObjectHandler).Methods("PUT") mux.HandleFunc("/{bucket}/{object:.*}", api.headObjectHandler).Methods("HEAD") + mux.HandleFunc("/{bucket}/{object:.*}", api.putObjectHandler).Methods("PUT") return mux }