0.0.1 • Published 10 years ago

webhook-router v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

webhook-demux

build status Coverage Status

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.

0.0.1

10 years ago