30 lines
805 B
PHP
30 lines
805 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
class DashboardController extends AbstractController
|
|
{
|
|
#[Route('/admin/dashboard', name: 'admin_dashboard')]
|
|
public function admin(): Response
|
|
{
|
|
return $this->render('dashboard/admin.html.twig');
|
|
}
|
|
|
|
#[Route('/secretaire/dashboard', name: 'secretaire_dashboard')]
|
|
public function secretaire(): Response
|
|
{
|
|
return $this->render('dashboard/secretaire.html.twig');
|
|
}
|
|
|
|
#[Route('/chauffagiste/dashboard', name: 'chauffagiste_dashboard')]
|
|
public function chauffagiste(): Response
|
|
{
|
|
return $this->render('dashboard/chauffagiste.html.twig');
|
|
}
|
|
}
|
|
|