Updated return status when creating
This commit is contained in:
parent
c1767d219a
commit
fb746714d0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue