Skip to content

Instantly share code, notes, and snippets.

@conanak99
Created February 12, 2020 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conanak99/489f57876941906fc6502e18ddcfab73 to your computer and use it in GitHub Desktop.
Save conanak99/489f57876941906fc6502e18ddcfab73 to your computer and use it in GitHub Desktop.
app.post('/webhook', async(req, res) => {
const hookObject = req.body;
console.log(JSON.stringify(hookObject, null, 2));
await process.processHook(hookObject);
res.status(200).send("OK");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment