1 package TestMiddleware;
4 use Plack::Middleware::Static;
10 my $static = Plack::Middleware::Static->new(
11 path => qr{^/static/}, root => TestMiddleware->path_to('share'));
14 'Controller::Root', { namespace => '' },
18 'Static', { path => qr{^/static2/}, root => TestMiddleware->path_to('share') },
20 '+TestMiddleware::Custom', { path => qr{^/static3/}, root => TestMiddleware->path_to('share') },
25 if($env->{PATH_INFO} =~m/forced/) {
26 Plack::App::File->new(file=>TestMiddleware->path_to(qw/share static forced.txt/))