src/Controller/Blo/StaticController.php line 24

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Controller\Blo;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. /**
  8.  * Pages statiques : Contact, FAQ, CGU, Confidentialité.
  9.  */
  10. #[Route('')]
  11. class StaticController extends AbstractController
  12. {
  13.     #[Route('/contact'name'blo_contact'methods: ['GET'])]
  14.     public function contact(): Response
  15.     {
  16.         return $this->render('blo/static/contact.html.twig');
  17.     }
  18.     #[Route('/faq'name'blo_faq'methods: ['GET'])]
  19.     public function faq(): Response
  20.     {
  21.         return $this->render('blo/static/faq.html.twig');
  22.     }
  23.     #[Route('/cgu'name'blo_cgu'methods: ['GET'])]
  24.     public function cgu(): Response
  25.     {
  26.         return $this->render('blo/static/cgu.html.twig');
  27.     }
  28.     #[Route('/confidentialite'name'blo_confidentialite'methods: ['GET'])]
  29.     public function confidentialite(): Response
  30.     {
  31.         return $this->render('blo/static/confidentialite.html.twig');
  32.     }
  33. }