feat: param de la page d'accueil

This commit is contained in:
2026-03-19 12:09:33 +01:00
parent ff6399436c
commit 627f5b6954
3 changed files with 6 additions and 36 deletions

View File

@@ -8,11 +8,9 @@ use Symfony\Component\Routing\Attribute\Route;
class HomeController extends AbstractController
{
#[Route('/hello', name: 'app_home', methods: ['GET'])]
public function hello(): Response
{
return $this->render('home/hello.html.twig', [
'name' => 'Melvin'
]);
}
#[Route(path: '/', name: 'app_home', methods: ['GET'])]
public function home(): Response
{
return $this->render('home/home.html.twig');
}
}