Files
file-explorer/src/Controller/EntrypointController.php

18 lines
499 B
PHP

<?php
declare(strict_types=1);
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class EntrypointController extends AbstractController
{
#[Route(path: '/', name: 'app_root', methods: Request::METHOD_GET)]
public function __invoke(): Response
{
return $this->redirectToRoute('app_home');
}
}