diff options
Diffstat (limited to 'app.psgi')
| -rwxr-xr-x | app.psgi | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app.psgi b/app.psgi new file mode 100755 index 0000000..edde840 --- /dev/null +++ b/app.psgi @@ -0,0 +1,22 @@ +#!/usr/bin/env + +use Dancer; +use StarGit; + +use Plack::Builder; + +my $app = sub { + my $env = shift; + my $request = Dancer::Request->new($env); + Dancer->dance($request); +}; + +builder { + enable "ConditionalGET"; + enable "ETag"; + enable "Auth::Basic", authenticator => sub { + my ( $username, $password ) = @_; + return $username eq 'github' && $password eq 'octocat'; + }; + $app; +}; |
