change homepage route

This commit is contained in:
Jannis Portmann 2021-05-09 11:20:45 +02:00
parent 19d2bfbcc3
commit d10ef764bc
7 changed files with 80 additions and 64 deletions

View file

@ -19,4 +19,10 @@ class AppController extends AbstractController
{
$this->entityManager = $entityManager;
}
#[Route('/', name: 'homepage')]
public function index(Environment $twig, OfferingRepository $offerRepository): Response
{
return new Response($twig->render('app/index.html.twig'));
}
}