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:
Chloe Kaubisch 2021-08-31 13:45:48 +02:00 committed by Ondřej Budai
parent 8a6e0e2b75
commit 86082c884d

View file

@ -426,7 +426,7 @@ func (h *apiHandlers) Compose(ctx echo.Context) error {
var response ComposeResult
response.Id = id.String()
return ctx.JSON(http.StatusOK, response)
return ctx.JSON(http.StatusCreated, response)
}
// ComposeStatus handles a /compose/{id} GET request