Création du controller

This commit is contained in:
Clément Laporte
2024-06-05 10:20:41 +02:00
parent ab95e3d286
commit 1b56f805b2
3 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class SpeciesController extends AbstractController
{
#[Route('/species', name: 'app_species')]
public function index(): Response
{
return $this->render('species/index.html.twig', [
'controller_name' => 'SpeciesController',
]);
}
}