Last active
January 28, 2020 19:27
-
-
Save Deborah-Digges/fe5de21f3c8c5b3cf93cca7eb934f002 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const express = require('express') | |
const app = express() | |
const port = 3000 | |
const bodyParser = require('body-parser'); | |
var options = { | |
type: 'application/json' | |
}; | |
app.use(bodyParser.raw(options)); | |
app.post('/', (req, res) => { | |
console.log(req.headers); | |
console.log(req.body.toString()) | |
res.send('Hello World!') | |
}) | |
app.listen(port, () => console.log(`Example app listening on port ${port}!`)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions to test the webhook: