Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 327 Bytes
use Plack::Builder;
use File::Basename qw(dirname);
my $handler = sub {
return [ 404, [ "Content-Type" => "text/plain" ], [ "Not Found" ] ];
};
builder {
enable "Plack::Middleware::ConditionalGET";
enable "Plack::Middleware::Static",
path => qr/./, root => dirname(__FILE__) . '/static';
$handler;
};