APIv2: Return `StatusCreated` from volume creation
The swagdoc in `register_volumes.go` already correctly notes that a 201 should be returned upon success, so we only need to change the handler to match the spec. Signed-off-by: Matt Brindley <58414429+maybe-sybr@users.noreply.github.com>
This commit is contained in:
parent
5fe122bf52
commit
3430ca4df0
|
|
@ -73,7 +73,7 @@ func CreateVolume(w http.ResponseWriter, r *http.Request) {
|
|||
UID: config.UID,
|
||||
GID: config.GID,
|
||||
}
|
||||
utils.WriteResponse(w, http.StatusOK, volResponse)
|
||||
utils.WriteResponse(w, http.StatusCreated, volResponse)
|
||||
}
|
||||
|
||||
func InspectVolume(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue