<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
class HomeController extends AbstractController {
/**
* @Route("/admin", name="home")
* @return \Symfony\Component\HttpFoundation\Response
*/
public function index () {
return $this->render('admin/dashboard/index.html.twig');
}
/**
* @Route("/", name="home-connexion")
* @return \Symfony\Component\HttpFoundation\Response
*/
public function home () {
return $this->redirectToRoute('home');
}
}