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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

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