person: add api point for altname config

This commit is contained in:
nobohan 2021-11-26 12:20:22 +01:00
parent 6e521642a4
commit 438cb7317a

View File

@ -738,6 +738,20 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
], ],
], ],
], ],
[
'class' => \Chill\PersonBundle\Entity\PersonAltName::class,
'name' => 'person_alt_names',
'base_path' => '/api/1.0/person/config/alt_names',
'base_role' => 'ROLE_USER',
'actions' => [
'_index' => [
'methods' => [
Request::METHOD_GET => true,
Request::METHOD_HEAD => true,
],
],
],
],
], ],
]); ]);
} }