<?php

namespace App\Shared\Controller;

use App\Shared\Captcha\AltchaService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;

class HomeController extends AbstractController
{
    public function __construct(private readonly AltchaService $altcha) {}

    #[Route('/', name: 'home', methods: ['GET'])]
    public function index(): Response
    {
        return $this->render('public/home.html.twig', [
            'altcha_enabled' => $this->altcha->enabled(),
        ]);
    }
}
