Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 498 Bytes
use File::Spec;
use File::Basename;
use lib File::Spec->catdir(dirname(__FILE__), 'extlib', 'lib', 'perl5');
use lib File::Spec->catdir(dirname(__FILE__), 'lib');
use SourceView::Web;
use Plack::Builder;
builder {
enable 'Plack::Middleware::Static',
path => qr{^(?:/static/|/robot\.txt$|/favicon.ico$)},
root => File::Spec->catdir(dirname(__FILE__));
enable 'Plack::Middleware::ReverseProxy';
enable 'Plack::Middleware::Log::Minimal';
SourceView::Web->to_app();
};