mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-26 13:44:19 +01:00
32 lines
549 B
PHP
32 lines
549 B
PHP
<?php
|
|
|
|
namespace Combodo\iTop\DI\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
/**
|
|
* Default controller.
|
|
*
|
|
*/
|
|
class DefaultController extends AbstractController
|
|
{
|
|
/**
|
|
* @Route ("/", name="root")
|
|
*/
|
|
public function root(): Response
|
|
{
|
|
return $this->redirectToRoute('home');
|
|
}
|
|
|
|
/**
|
|
* @Route ("/home", name="home")
|
|
*/
|
|
public function home(): Response
|
|
{
|
|
return $this->render('DI/home.html.twig');
|
|
}
|
|
|
|
}
|