resourceful-webhooks requests a URL every time an event happens on a
If the webhook responds with an HTTP error, an error is returned, thus blocking the event from happening.
npm install resourceful-webhooks
The following example will
Resource is created.
The request body is the created document.
var resourceful = require'resourceful';require'resourceful-webhooks';var Resource = resourcefuldefine'Resource'thiswebhooksurl: ''events: 'create';;Resourcecreateid: 'resource/hello'hello: 'world'if errconsole.errorerrmessage;;