Fixed response syntax with new FW version

This commit is contained in:
Eldad Fux committed 2022-09-07 14:02:36 +03:00
1 parent 856a53c33c
commit 0895a25615
8 files changed
+98 -68

No files matched your search

+3 -2
View File
@@ -85,8 +85,9 @@ App::post('/v1/users')
->setParam('userId', $user->getId())
;
$response->setStatusCode(Response::STATUS_CODE_CREATED);
$response->dynamic($user, Response::MODEL_USER);
$response
->setStatusCode(Response::STATUS_CODE_CREATED)
->dynamic($user, Response::MODEL_USER);
});
App::get('/v1/users')