mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
tp api endpoints: use default controller (fix)
This commit is contained in:
parent
7d2e82d69b
commit
7fe0f08300
@ -44,7 +44,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte
|
||||
$this->preprendRoutes($container);
|
||||
$this->prependRoleHierarchy($container);
|
||||
}
|
||||
|
||||
|
||||
protected function preprendRoutes(ContainerBuilder $container)
|
||||
{
|
||||
//declare routes for 3party bundle
|
||||
@ -60,7 +60,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte
|
||||
'name' => 'thirdparty',
|
||||
'base_path' => '/api/1.0/thirdparty/thirdparty',
|
||||
'base_role' => \Chill\ThirdPartyBundle\Security\Authorization\ThirdPartyVoter::class,
|
||||
'controller' => \Chill\ThirdPartyBundle\Controller\ThirdPartyApiController::class,
|
||||
//'controller' => \Chill\ThirdPartyBundle\Controller\ThirdPartyApiController::class,
|
||||
'actions' => [
|
||||
'_index' => [
|
||||
'methods' => [
|
||||
@ -87,7 +87,7 @@ class ChillThirdPartyExtension extends Extension implements PrependExtensionInte
|
||||
],
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
protected function prependRoleHierarchy(ContainerBuilder $container)
|
||||
{
|
||||
$container->prependExtensionConfig('security', array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user