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