Created
February 12, 2020 08:32
-
-
Save conanak99/489f57876941906fc6502e18ddcfab73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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