src/Controller/IndexController.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class IndexController extends AbstractController
  7. {
  8.     /**
  9.      * @Route(path="/")
  10.      * @return \Symfony\Component\HttpFoundation\RedirectResponse
  11.      */
  12.     public function index(): Response
  13.     {
  14.         return $this->redirectToRoute('admin');
  15.     }
  16. }