mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-26 09:33:50 +00:00
change logic of dashboard item to return user config, reinstate news items api
This commit is contained in:
@@ -793,10 +793,31 @@ class ChillMainExtension extends Extension implements
|
||||
],
|
||||
],
|
||||
[
|
||||
'class' => \Chill\MainBundle\Entity\DashboardItem::class,
|
||||
'class' => \Chill\MainBundle\Entity\DashboardConfigItem::class,
|
||||
'controller' => \Chill\MainBundle\Controller\DashboardApiController::class,
|
||||
'name' => 'dashboard-item',
|
||||
'base_path' => '/api/1.0/main/dashboard-item',
|
||||
'name' => 'dashboard-config-item',
|
||||
'base_path' => '/api/1.0/main/dashboard-config-item',
|
||||
'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,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
[
|
||||
'class' => \Chill\MainBundle\Entity\NewsItem::class,
|
||||
'controller' => \Chill\MainBundle\Controller\NewsItemApiController::class,
|
||||
'name' => 'news-items',
|
||||
'base_path' => '/api/1.0/main/news',
|
||||
'base_role' => 'ROLE_USER',
|
||||
'actions' => [
|
||||
'_index' => [
|
||||
|
Reference in New Issue
Block a user