Adding more tests

This commit is contained in:
Frederick F. Kautz IV
2015-01-24 13:12:34 -08:00
parent 72179fbc84
commit af1ec94925
2 changed files with 159 additions and 7 deletions
+1 -2
View File
@@ -56,9 +56,8 @@ func HttpHandler(storage mstorage.Storage) http.Handler {
}
mux.HandleFunc("/", api.listBucketsHandler).Methods("GET")
mux.HandleFunc("/{bucket}", api.listObjectsHandler).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}/{object:.*}", api.getObjectHandler).Methods("GET")
mux.HandleFunc("/{bucket}/{object:.*}", api.headObjectHandler).Methods("HEAD")
mux.HandleFunc("/{bucket}/{object:.*}", api.putObjectHandler).Methods("PUT")