Skip to content
Newer
Older
100755 20 lines (15 sloc) 482 Bytes
e382258 @ctfliblime Add Plack scaffolding and middleware
ctfliblime authored Apr 1, 2011
1 #!/usr/bin/env perl
2
75ae17f @ctfliblime Remove cruft from app.psgi
ctfliblime authored Jun 24, 2011
3 use Koha;
e382258 @ctfliblime Add Plack scaffolding and middleware
ctfliblime authored Apr 1, 2011
4 use Plack::App::CGIBin;
5 use Plack::Builder;
1a47060 @ctfliblime Allow for dynamic multi-instance servicing
ctfliblime authored Jun 30, 2011
6 use Koha::Plack::Util;
e382258 @ctfliblime Add Plack scaffolding and middleware
ctfliblime authored Apr 1, 2011
7
8 my $app = Plack::App::CGIBin->new(root => $ENV{PERL5LIB})->to_app;
9
10 builder {
11 enable 'Deflater';
12 enable 'Static', path => qr{^/opac-tmpl/}, root => 'koha-tmpl/';
13 enable 'Static', path => qr{^/intranet-tmpl/}, root => 'koha-tmpl/';
fa8ca08 @ctfliblime Rename C4::Plack::* to Koha::Plack::*
ctfliblime authored Jun 24, 2011
14 enable '+Koha::Plack::Localize';
012e6bd @ctfliblime Rely on default Plack staff resolver by default in app.psgi
ctfliblime authored Jul 1, 2011
15 enable '+Koha::Plack::Rewrite';
fa8ca08 @ctfliblime Rename C4::Plack::* to Koha::Plack::*
ctfliblime authored Jun 25, 2011
16 enable '+Koha::Plack::ScrubStatus';
e382258 @ctfliblime Add Plack scaffolding and middleware
ctfliblime authored Apr 1, 2011
17
18 mount '/' => $app;
19 };
Something went wrong with that request. Please try again.