adding endpoint for LocationType. fetch types and add form fields.

This commit is contained in:
2021-10-13 19:31:48 +02:00
parent b418d13190
commit 4d4662a634
5 changed files with 98 additions and 6 deletions

View File

@@ -464,6 +464,27 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
]
],
]
],
[
'class' => \Chill\MainBundle\Entity\LocationType::class,
'name' => 'location_type',
'base_path' => '/api/1.0/main/location-type',
'base_role' => 'ROLE_USER',
'actions' => [
'_index' => [
'methods' => [
Request::METHOD_GET => true,
Request::METHOD_HEAD => true
],
],
'_entity' => [
'methods' => [
Request::METHOD_GET => true,
Request::METHOD_HEAD => true,
]
],
]
]
]