tiny syntactic fluff

This commit is contained in:
Matthew Connelly 2015-11-27 22:06:11 +00:00
parent d7e34d61d2
commit ad87295ed5
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ get '/:extpage' => sub {
return $page->output;
};
# 404
any qr{.*} => sub {
any qr/.*/ => sub {
return redirect '/' if request->path =~ /index(?:\.(?:html?|pl)?)?$/;
status 'not_found';
#return redirect '/404.html'; # this doesn't actually work, need to find a better way of 404ing using nginx's 404 page