mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Add delete handlers and reply back as 'NotImplemented' instead of 404
This commit is contained in:
@@ -65,6 +65,12 @@ func HTTPHandler(config Config) http.Handler {
|
||||
mux.HandleFunc("/{bucket}/{object:.*}", api.getObjectHandler).Methods("GET")
|
||||
mux.HandleFunc("/{bucket}/{object:.*}", api.putObjectHandler).Methods("PUT")
|
||||
|
||||
// not implemented yet
|
||||
mux.HandleFunc("/{bucket}", api.deleteBucketHandler).Methods("DELETE")
|
||||
|
||||
// unsupported API
|
||||
mux.HandleFunc("/{bucket}/{object:.*}", api.deleteObjectHandler).Methods("DELETE")
|
||||
|
||||
handler := validContentTypeHandler(mux)
|
||||
handler = timeValidityHandler(handler)
|
||||
handler = ignoreResourcesHandler(handler)
|
||||
|
||||
Reference in New Issue
Block a user