src/Controller/SpaController.php line 15

Open in your IDE?
  1. <?php
  2.   
  3. namespace App\Controller;
  4.   
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Routing\Annotation\Route;
  8.   
  9. class SpaController extends AbstractController
  10. {
  11.     /**
  12.   
  13.      * @Route("/{reactRouting}", name="app_home", requirements={"reactRouting"="^(?!api).+"}, defaults={"reactRouting": null})
  14.      */
  15.     public function index()
  16.     {
  17.         return $this->render('spa/index.html.twig');
  18.     }
  19. }