make frontend news widget

This commit is contained in:
2023-11-09 13:49:32 +01:00
parent efdc84930b
commit 6c93c8b8fa
7 changed files with 141 additions and 38 deletions

View File

@@ -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 = [