<?php
declare(strict_types=1);
namespace App\Controller\Public;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class IndexController extends AbstractController {
#[Route('/', name: 'homepage')]
public function index(): Response {
return $this->redirectToRoute("events");
}
#[Route("/privacy", name: "privacy_policy")]
public function privacy(): Response {
return $this->render("public/index/privacy_policy.html.twig");
}
#[Route("/contract-en-voorwaarden", name: "terms_and_conditions")]
public function termsAndConditions(): Response {
return $this->render("public/index/terms_and_conditions.html.twig");
}
}