Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 511 Bytes
use strict;
use warnings;
use Plack::Builder;
use Plack::Middleware::MethodOverride ();
use Fedora::App::Updates;
builder {
# Plack::Middleware::Static::Minifier <-- use in !development
enable 'AccessLog';
enable Static =>
path => qr{^/static/(images|js|css)/},
root => 'root/'
;
enable 'Debug'; # XXX only in debug mode, yes?
enable 'MethodOverride';
my $app = Fedora::App::Updates->apply_default_middlewares(Fedora::App::Updates->psgi_app);
$app;
};