diff --git a/api/handler/delete.go b/api/handler/delete.go index 1798317b..11daaa80 100644 --- a/api/handler/delete.go +++ b/api/handler/delete.go @@ -34,3 +34,15 @@ func (h *handler) DeleteObjectHandler(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNoContent) } + +// DeleteMultipleObjectsHandler : +// +// CyberDuck doesn't use that method for multiple delete. +// Open issue and describe how to test that method. +func (h *handler) DeleteMultipleObjectsHandler(w http.ResponseWriter, r *http.Request) { + api.WriteErrorResponse(r.Context(), w, api.Error{ + Code: "XNeoFSUnimplemented", + Description: "implement me " + mux.CurrentRoute(r).GetName(), + HTTPStatusCode: http.StatusNotImplemented, + }, r.URL) +} diff --git a/api/handler/unimplemented.go b/api/handler/unimplemented.go index 39e2c592..378efc05 100644 --- a/api/handler/unimplemented.go +++ b/api/handler/unimplemented.go @@ -358,11 +358,3 @@ func (h *handler) PostPolicyBucketHandler(w http.ResponseWriter, r *http.Request HTTPStatusCode: http.StatusNotImplemented, }, r.URL) } - -func (h *handler) DeleteMultipleObjectsHandler(w http.ResponseWriter, r *http.Request) { - api.WriteErrorResponse(r.Context(), w, api.Error{ - Code: "XNeoFSUnimplemented", - Description: "implement me " + mux.CurrentRoute(r).GetName(), - HTTPStatusCode: http.StatusNotImplemented, - }, r.URL) -}