Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 7129dcda5e
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (15 sloc) 0.535 kB
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 Noritama::Web;
use Noritama::API;
use Plack::Builder;
builder {
enable 'Plack::Middleware::Static',
path => qr{^(?:/static/|/robot\.txt$|/favicon.ico$)},
root => File::Spec->catdir(dirname(__FILE__), 'htdocs');
enable 'Plack::Middleware::ReverseProxy';
mount '/' => Noritama::Web->to_app();
mount '/api' => Noritama::API->to_app();
};
Jump to Line
Something went wrong with that request. Please try again.