mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-10-04 17:04:54 +02:00
start get my stuff on dashboard js
This commit is contained in:
parent
e7d6b66f70
commit
63895ee93c
1 changed files with 5 additions and 1 deletions
|
@ -108,9 +108,13 @@ final class DefaultController extends AbstractController
|
||||||
// TODO: replace this with actual logic to get products of the logged user
|
// TODO: replace this with actual logic to get products of the logged user
|
||||||
// récupérer les produits de l'user connecté
|
// récupérer les produits de l'user connecté
|
||||||
|
|
||||||
|
$user = $this->getUser();
|
||||||
// $products = $this->getUser()->getProducts();
|
// $products = $this->getUser()->getProducts();
|
||||||
return $this->json([
|
return $this->json([
|
||||||
'products' => $this->getUser()->getProducts(),
|
'categories' => $user->getGroupOfProducts(),
|
||||||
|
'products' => $user->getProducts(),
|
||||||
|
// mock land
|
||||||
|
'lastFestival' => ['id'=>1]
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
#[Route('/logged/import', name: 'import')]
|
#[Route('/logged/import', name: 'import')]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue