]> iEval git - plack-app-gruntmaster.git/blame_incremental - app.psgi
Rebuild themes without unused components
[plack-app-gruntmaster.git] / app.psgi
... / ...
CommitLineData
1#!/usr/bin/perl -w
2use v5.14;
3
4use Apache2::Authen::Passphrase qw/pwcheck/;
5use Plack::App::Gruntmaster;
6use Plack::Builder;
7use Plack::Request;
8
9sub some_auth_required {
10 my $r = Plack::Request->new($_[0]);
11 return 1 if $r->path eq '/action/passwd';
12 0
13}
14
15builder {
16 enable 'ContentLength';
17 enable 'Static', path => qr,/static/,;
18 enable 'Log4perl', category => 'plack', conf => 'log.conf';
19 enable_if \&some_auth_required, 'Auth::Basic', authenticator => sub { eval {pwcheck @_; 1} }, realm => 'Gruntmaster 6000';
20 Plack::App::Gruntmaster->to_app
21}
This page took 0.024767 seconds and 4 git commands to generate.