adding an API GET Location endpoint, fetch locations and list them in vue multiselect

This commit is contained in:
2021-10-13 14:22:53 +02:00
parent 342c462ed7
commit 48f3c440a2
5 changed files with 91 additions and 7 deletions

View File

@@ -445,6 +445,27 @@ class ChillMainExtension extends Extension implements PrependExtensionInterface,
],
]
],
[
'class' => \Chill\MainBundle\Entity\Location::class,
'name' => 'location',
'base_path' => '/api/1.0/main/location',
'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,
]
],
]
]
]
]);
}