This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pflaenz.li-Symfony/src/Controller/AppController.php
2021-06-06 10:38:32 +02:00

24 lines
604 B
PHP

<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Twig\Environment;
class AppController extends AbstractController
{
#[Route('/', name: 'homepage')]
public function index(): Response
{
return $this->render('app/index.html.twig');
}
#[Route('/imprint', name: 'imprint')]
public function imprint(): Response
{
return $this->render('app/imprint.html.twig');
}
}