<?php | |
namespace App\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Routing\Annotation\Route; | |
class HomeController extends AbstractController { | |
#[Route('/', name: 'leaf_home')] | |
public function index(): Response { | |
return $this->render('home/index.html.twig'); | |
} | |
#[Route('/stack', name: 'leaf_stack')] | |
public function stack(): Response { | |
return $this->render('stack/index.html.twig'); | |
} | |
} |