start get my stuff on dashboard js

This commit is contained in:
Tykayn 2025-02-14 18:21:21 +01:00 committed by tykayn
parent e7d6b66f70
commit 63895ee93c

View file

@ -108,9 +108,13 @@ final class DefaultController extends AbstractController
// TODO: replace this with actual logic to get products of the logged user
// récupérer les produits de l'user connecté
$user = $this->getUser();
// $products = $this->getUser()->getProducts();
return $this->json([
'products' => $this->getUser()->getProducts(),
'categories' => $user->getGroupOfProducts(),
'products' => $user->getProducts(),
// mock land
'lastFestival' => ['id'=>1]
]);
}
#[Route('/logged/import', name: 'import')]