<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class LegalController extends AbstractController
{
#[Route('/legal', name: 'app_legal_index')]
public function index(): Response
{
return $this->redirectToRoute('app_legal_imprint');
}
#[Route('/legal/imprint', name: 'app_legal_imprint')]
public function imprint(): Response
{
return $this->render('legal/imprint.html.twig', [
'active_tab' => 'imprint',
]);
}
#[Route('/legal/privacy', name: 'app_legal_privacy')]
public function privacy(): Response
{
return $this->render('legal/privacy.html.twig', [
'active_tab' => 'privacy',
]);
}
#[Route('/legal/terms', name: 'app_legal_terms')]
public function terms(): Response
{
return $this->render('legal/terms.html.twig', [
'active_tab' => 'terms',
]);
}
#[Route('/legal/cookies', name: 'app_legal_cookies')]
public function cookies(): Response
{
return $this->render('legal/cookies.html.twig', [
'active_tab' => 'cookies',
]);
}
}