mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
make frontend news widget
This commit is contained in:
@@ -19,17 +19,17 @@ class DashboardApiController
|
||||
{
|
||||
}
|
||||
|
||||
public function indexApi()
|
||||
{
|
||||
return $this->getDashboardConfiguration();
|
||||
}
|
||||
|
||||
// I dont understand why this method is needed, but if I do a cache clear without this method present, he gives an error saying it needs to be present.
|
||||
public function setCrudConfig()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Give the user dashboard configuration
|
||||
*
|
||||
* @Route("/api/1.0/main/dashboard-config-item.json", methods={"post"})
|
||||
*/
|
||||
public function getDashboardConfiguration(): JsonResponse
|
||||
{
|
||||
$data = [
|
||||
|
Reference in New Issue
Block a user