Fixed response syntax with new FW version

This commit is contained in:
Eldad Fux
2022-09-07 14:02:36 +03:00
parent 856a53c33c
commit 0895a25615
8 changed files with 98 additions and 68 deletions
+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')