<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class Index extends AbstractController
{
#[
Route(
'/{path}',
name: 'home',
defaults: ['path' => ''],
requirements: ['path' => '^((?!(api|_)).)*$']
)
]
public function indexAction(): Response
{
// if (1 !== preg_match("/^\/login/", $request->getPathInfo()) && !$authChecker->isGranted('IS_AUTHENTICATED_FULLY')) {
// return $this->redirect('/login');
// }
return $this->render('index.twig');
}
}