forked from projects/file-explorer
refactor
This commit is contained in:
18
src/Controller/EntrypointController.php
Normal file
18
src/Controller/EntrypointController.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user