Updated return status when creating

This commit is contained in:
konrad 2018-09-06 18:57:28 +02:00 committed by kolaente
parent c1767d219a
commit fb746714d0
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -76,5 +76,5 @@ func (c *WebHandler) CreateWeb(ctx echo.Context) error {
return echo.NewHTTPError(http.StatusInternalServerError)
}
return ctx.JSON(http.StatusOK, c.CObject)
return ctx.JSON(http.StatusCreated, c.CObject)
}