<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
final class DefaultController extends AbstractController
{
/**
* @Route("/{react_routing}", priority="-1", name="indexs", defaults={"react_routing": null}, methods={"POST", "GET"}, requirements={"react_routing"=".+"})
*/
public function index():Response
{
return $this->render('base.html.twig');
}
/**
* @Route("/login", name="app_login")
* @return Response
*/
public function login(): Response{
return $this->render('security/index.html.twig');
}
/**
* @Route("/logout", name="app_logout")
*/
public function logout(): Response
{
return $this->redirectToRoute('app_login');
}
}