src/Controller/ReactController.php line 12
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class ReactController extends AbstractController
{
#[Route('/{page}', name: 'app_react', requirements: ['page' => "^(?!admin|api|newsletter|logout|images).+"])]
public function reactIndex($page = null): Response
{
if($this->isGranted('ROLE_ADMIN') && !$this->getUser()->getExpeditorAccount()) {
return $this->redirectToRoute('app_admin_users');
}
return $this->render('@react/index.html');
}
}
//