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 => '' },
11 'Static', { path => qr{^/static2/}, root => TestMiddlewareFromConfig->path_to('share') },
13 '+TestMiddleware::Custom', { path => qr{^/static3/}, root => TestMiddlewareFromConfig->path_to('share') },
18 if($env->{PATH_INFO} =~m/forced/) {
19 Plack::App::File->new(file=>TestMiddlewareFromConfig->path_to(qw/share static forced.txt/))