RSION = '0.002';
}
# ABSTRACT: A simple means of receiving GitHub's web hooks
use Try::Tiny;
use JSON;
has routes => (
is => 'rw',
predicate => 'has_routes',
required => 1,
i
my $json = decode_json $payload;
# callback
$self->routes->{ "/$path" }->( $json );
}
catch {
# malformed JSON string, n
ect, number, string or atom, at character offset 0 ?
# you are trying to POST non JSON data. don't do that.
warn "Caught exception: /$path: attempted to trigger callbac