I’m having trouble validating my URL for Webhooks. I am capturing the challenge token and writing it to a logs table in my MySQL DB so I know that I am receiving the challenge, however, the below script does not work. Any insight would be much appreciated!
< script type=“text/javascript” >
app.post(“/”, function (req, res) {
console.log(JSON.stringify(req.body, 0, 2));
res.status(200).send(req.body);
})
< /script >