fix libre-graph status codes (#7705)

* fix libre-graph status codes

* owncloud-test-middleware bumped

---------

Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
This commit is contained in:
Roman Perekhod
2023-11-15 17:45:23 +01:00
committed by GitHub
parent 71b596e947
commit a6b75bc9f6
13 changed files with 55 additions and 40 deletions

View File

@@ -97,7 +97,7 @@ func (g Graph) PostGroup(w http.ResponseWriter, r *http.Request) {
}
g.publishEvent(r.Context(), e)
}
render.Status(r, http.StatusOK) // FIXME 201 should return 201 created
render.Status(r, http.StatusCreated)
render.JSON(w, r, grp)
}