webhook-router
v0.0.1
Published
route webhooks to webhooks
Downloads
4
Readme
webhook-demux
Routes a single webhook endpoint to multiple webhook endpoints depending on content of the JSON request body.
how
Webhooks are sent to this server, and you configure a config.json
file (or whatever's in the --config
argument) that looks like:
[{
"match": { "type": "blue" },
"url": "http://blue.com/"
}]
Match is a JavaScript object with a subset of properties that should
_.matches a request data
subset. Then it routes the same exact request with the same headers
and method to a different url, given by url
.