chagne route params

This commit is contained in:
Constantin Simonis 2025-01-23 17:32:58 +01:00
parent e9bdcfe82e
commit 3eae748fff
Signed by: csimonis
GPG Key ID: 3878FF77C24AF4D2

View File

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