Let's see if this works cuz there's no tests (??)
This commit is contained in:
parent
9135dc434b
commit
4690469433
|
@ -2,21 +2,10 @@
|
||||||
|
|
||||||
use Mojolicious::Lite;
|
use Mojolicious::Lite;
|
||||||
|
|
||||||
get '/' => sub {
|
get '/*' => sub {
|
||||||
my ($c) = @_;
|
my ($c) = @_;
|
||||||
my $hostHeader = $c->req->headers->host();
|
|
||||||
my $scheme = $c->req->url->base->scheme();
|
|
||||||
|
|
||||||
if ($hostHeader =~ /www.wethepeople.win(|:[0-9]{1,5})/) {
|
$c->render();
|
||||||
$c->render()
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$c->redirect_to("$scheme://www.wethepeople.win")
|
|
||||||
}
|
|
||||||
|
|
||||||
# Opt out of Google FLoC
|
|
||||||
# https://paramdeo.com/blog/opting-your-website-out-of-googles-floc-network
|
|
||||||
$c->res->headers->header('Permissions-Policy', 'interest-cohort=()');
|
|
||||||
} => 'index';
|
} => 'index';
|
||||||
|
|
||||||
app->start();
|
app->start();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user