cloudapi/v1: Return status created in compose handler

This commit is contained in:
sanne 2021-10-07 00:51:13 +02:00 committed by Sanne Raymaekers
parent 12ca5325d6
commit cda54ef926
2 changed files with 7 additions and 3 deletions

View file

@ -384,7 +384,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