Updated return status when creating
This commit is contained in:
parent
c1767d219a
commit
fb746714d0
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user