burguillos.info/lib/BurguillosInfo/Controller/Robots.pm

15 lines
321 B
Perl
Raw Permalink Normal View History

2023-05-03 01:02:51 +02:00
package BurguillosInfo::Controller::Robots;
use Mojo::Base 'Mojolicious::Controller', '-signatures';
sub robots($self) {
my $robots_txt = <<"EOF";
Sitemap: @{[$self->config('base_url')]}/sitemap.xml
User-Agent: *
Disallow: /stats
Disallow: /stats/*
EOF
$self->render(text => $robots_txt, format => 'txt');
}
1;