<?php
declare(strict_types=1);
namespace App\Controller\Seo;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class RobotsController extends AbstractController
{
#[Route("robots.txt", name: "robots_txt")]
public function index(): Response
{
$response = $this->render('seo/robots.html.twig');
$response->headers->set('Content-Type', 'text/plain');
return $response;
}
}