<?php
namespace App\Controller\Frontend;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Serializer\SerializerInterface;
final class AppController extends AbstractController
{
#[Route(
path: '/{vueRouting}',
requirements: [
'vueRouting' => '^(?!bat.gif|auth|build|js|css|resetting|time|login|logout|register|api|backend|_(profiler|wdt)).*',
],
name: 'frontend_app'
)
]
public function indexAction(SerializerInterface $serializer): Response
{
// redirects to the "homepage" route
//return new RedirectResponse('/web/#');
return $this->render('index.html');
}
}