Plack::Middleware::HTTPExceptions;
use Plack::Middleware::Access;
use Carp qw(croak);
use JSON qw(decode_json);
use Scalar::Util qw(blessed);
our $VERSION = '0.9';
our @GITHUB_IPS = (
allow =>
) {
$payload = $req->param('payload') || $req->content;
$payload = eval { decode_json $payload };
}
if (!$payload) {
return [400,['Content-Type'=>'text/plain','Conten
ION
This L<PSGI> application receives HTTP POST requests with body parameter
C<payload> set to a JSON object. The default use case is to receive
L<GitHub WebHooks|http://developer.github.com/webhook