]> iEval git - plack-app-gruntmaster.git/blame_incremental - app.psgi
Add Page::Src
[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 0
12}
13
14builder {
15 enable 'Static', path => qr,/static/,;
16 enable 'Log4perl', category => 'plack', conf => 'log.conf';
17 enable_if \&some_auth_required, 'Auth::Basic', authenticator => sub { eval {pwcheck @_; 1} }, realm => 'Gruntmaster 6000';
18 Plack::App::Gruntmaster->to_app
19}
This page took 0.014891 seconds and 4 git commands to generate.