GET and POST both working.

This commit is contained in:
2021-10-29 09:29:27 +02:00
parent 69e3a0a6cd
commit 3a7af94058
5 changed files with 68 additions and 34 deletions

View File

@@ -879,14 +879,10 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'actions' => [
'_entity' => [
'methods' => [
Request::METHOD_GET => true,
Request::METHOD_HEAD => true,
Request::METHOD_POST => true,
Request::METHOD_PATCH => true
],
'roles' => [
Request::METHOD_GET => 'ROLE_USER',
Request::METHOD_HEAD => 'ROLE_USER',
Request::METHOD_POST => 'ROLE_USER',
Request::METHOD_PATCH => 'ROLE_USER'
]