forked from TrueCloudLab/frostfs-s3-gw
[#47] handler, layer: Add CreateBucket
Renamed PutBucket to CreateBucket Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
95f75ec880
commit
c12abf6243
5 changed files with 133 additions and 12 deletions
|
@ -62,11 +62,3 @@ func (h *handler) PutBucketNotificationHandler(w http.ResponseWriter, r *http.Re
|
|||
HTTPStatusCode: http.StatusNotImplemented,
|
||||
}, r.URL)
|
||||
}
|
||||
|
||||
func (h *handler) PutBucketHandler(w http.ResponseWriter, r *http.Request) {
|
||||
api.WriteErrorResponse(r.Context(), w, api.Error{
|
||||
Code: api.GetAPIError(api.ErrBadRequest).Code,
|
||||
Description: notSupported + mux.CurrentRoute(r).GetName(),
|
||||
HTTPStatusCode: http.StatusNotImplemented,
|
||||
}, r.URL)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue