Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 401 Bytes
use FindBin;
use lib "$FindBin::Bin/extlib/lib/perl5";
use lib "$FindBin::Bin/lib";
use File::Basename;
use Plack::Builder;
use Iyemon::Web;
my $root_dir = File::Basename::dirname(__FILE__);
my $app = Iyemon::Web->psgi($root_dir);
builder {
enable 'ReverseProxy';
enable 'Static',
path => qr!^/(?:(?:css|js|img)/|favicon\.ico$)!,
root => $root_dir . '/public';
$app;
};