forked from .cyb/cyberman
plack nonsense
This commit is contained in:
parent
7674f31366
commit
3f45e4abc7
|
@ -0,0 +1,20 @@
|
||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
use FindBin;
|
||||||
|
use lib "$FindBin::Bin/lib";
|
||||||
|
|
||||||
|
|
||||||
|
# use this block if you don't need middleware, and only have a single target Dancer app to run here
|
||||||
|
use cyberman;
|
||||||
|
|
||||||
|
cyberman->to_app;
|
||||||
|
|
||||||
|
use Plack::Builder;
|
||||||
|
|
||||||
|
builder {
|
||||||
|
enable 'Deflater';
|
||||||
|
cyberman->to_app;
|
||||||
|
}
|
||||||
|
|
9
cpanfile
9
cpanfile
|
@ -1,9 +1,10 @@
|
||||||
requires "Dancer2" => "0.205001";
|
requires "Dancer2" => "0.205001";
|
||||||
|
|
||||||
recommends "YAML" => "0";
|
requires "YAML" => "0";
|
||||||
recommends "URL::Encode::XS" => "0";
|
requires "URL::Encode::XS" => "0";
|
||||||
recommends "CGI::Deurl::XS" => "0";
|
requires "CGI::Deurl::XS" => "0";
|
||||||
recommends "HTTP::Parser::XS" => "0";
|
requires "HTTP::Parser::XS" => "0";
|
||||||
|
requires "Plack::Middleware::Deflater" => "0";
|
||||||
|
|
||||||
on "test" => sub {
|
on "test" => sub {
|
||||||
requires "Test::More" => "0";
|
requires "Test::More" => "0";
|
||||||
|
|
Loading…
Reference in New Issue