cloudapi: fix compose return value
Correct compose successful return status from http.StatusOK to http.StatusCreated. Mistakenly set to http.StatusOK in previous commit.
This commit is contained in:
parent
8a6e0e2b75
commit
86082c884d
1 changed files with 1 additions and 1 deletions
|
|
@ -426,7 +426,7 @@ func (h *apiHandlers) Compose(ctx echo.Context) error {
|
||||||
var response ComposeResult
|
var response ComposeResult
|
||||||
response.Id = id.String()
|
response.Id = id.String()
|
||||||
|
|
||||||
return ctx.JSON(http.StatusOK, response)
|
return ctx.JSON(http.StatusCreated, response)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ComposeStatus handles a /compose/{id} GET request
|
// ComposeStatus handles a /compose/{id} GET request
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue