Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 21 lines (16 sloc) 0.567 kB
e382258 @ctfliblime Add Plack scaffolding and middleware
ctfliblime authored
1 #!/usr/bin/env perl
2
75ae17f @ctfliblime Remove cruft from app.psgi
ctfliblime authored
3 use Koha;
e382258 @ctfliblime Add Plack scaffolding and middleware
ctfliblime authored
4 use Plack::App::CGIBin;
5 use Plack::Builder;
1a47060 @ctfliblime Allow for dynamic multi-instance servicing
ctfliblime authored
6 use Koha::Plack::Util;
e382258 @ctfliblime Add Plack scaffolding and middleware
ctfliblime authored
7
8 my $app = Plack::App::CGIBin->new(root => $ENV{PERL5LIB})->to_app;
9
10 builder {
11 enable 'Deflater';
ef56341 @ctfliblime [delivers #16371557] Cordon off administrative functions from web access
ctfliblime authored
12 enable 'Status', path => qr{/C4/|/Koha/|/misc/|/t/|/xt/|/etc/}, status => 404;
e382258 @ctfliblime Add Plack scaffolding and middleware
ctfliblime authored
13 enable 'Static', path => qr{^/opac-tmpl/}, root => 'koha-tmpl/';
14 enable 'Static', path => qr{^/intranet-tmpl/}, root => 'koha-tmpl/';
18a6387 @ctfliblime [delivers #16336385] Deprecate Koha::Plack::ScrubStatus
ctfliblime authored
15 enable 'Header', unset => ['Status'];
fa8ca08 @ctfliblime Rename C4::Plack::* to Koha::Plack::*
ctfliblime authored
16 enable '+Koha::Plack::Localize';
012e6bd @ctfliblime Rely on default Plack staff resolver by default in app.psgi
ctfliblime authored
17 enable '+Koha::Plack::Rewrite';
e382258 @ctfliblime Add Plack scaffolding and middleware
ctfliblime authored
18
19 mount '/' => $app;
20 };
Something went wrong with that request. Please try again.