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