1 package TestMiddleware;
3 use Plack::Middleware::Static;
9 my $static = Plack::Middleware::Static->new(
10 path => qr{^/static/}, root => TestApp->path_to('share'));
13 'Controller::Root', { namespace => '' },
16 'Static', { path => qr{^/static2/}, root => TestApp->path_to('share') },
17 '+TestApp::Custom', { path => qr{^/static3/}, root => TestApp->path_to('share') },
22 if($env->{PATH_INFO} =~m/forced/) {
23 Plack::App::File->new(file=>TestApp->path_to(qw/share static forced.txt/))