24 lines
		
	
	
	
		
			604 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			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');
 | |
|     }
 | |
| }
 |