webhook-router

0.0.1 • Public • Published

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.

/webhook-router/

    Package Sidebar

    Install

    npm i webhook-router

    Weekly Downloads

    1

    Version

    0.0.1

    License

    ISC

    Last publish

    Collaborators

    • tmcw
    • aaronlidman