From d6e21f7f381d84a655e19150601681511ef6a17c Mon Sep 17 00:00:00 2001 From: andrusyakka Date: Wed, 5 Jul 2023 18:42:41 +0300 Subject: [PATCH] fix result code --- handler/organization.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/organization.go b/handler/organization.go index b4b639e..3f62dc4 100644 --- a/handler/organization.go +++ b/handler/organization.go @@ -27,5 +27,5 @@ func (h *Handler) GetOrganizations(c echo.Context) error { h.DB.Find(&organizations) - return c.JSON(http.StatusCreated, organizations) + return c.JSON(http.StatusOK, organizations) }