<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class DefaultController extends AbstractController
{
#[Route('/', name: 'app_index')]
public function index(): Response
{
return $this->redirect($this->generateUrl('app_login'));
return $this->render('app/index.html.twig', [
'controller_name' => 'World',
]);
}
#[Route('/legal-mentions', name: 'app_legal_mentions')]
public function legalMentions(): Response
{
return $this->render('app/legalMentions.html.twig', []);
}
}