From fb746714d0fa05d8d6526be618bd1a5a604fd91d Mon Sep 17 00:00:00 2001 From: konrad Date: Thu, 6 Sep 2018 18:57:28 +0200 Subject: [PATCH] Updated return status when creating --- routes/crud/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/crud/create.go b/routes/crud/create.go index c163370200..080341f60b 100644 --- a/routes/crud/create.go +++ b/routes/crud/create.go @@ -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) }