Express style middleware
app.post('/your/api', cw.utils.middleware((err, req, res, verified, payload) => {
if (err) {
//handle error
res.status(500).end();
} else if (!verified) {
// send 403 on verification failure
res.status(403).end();
} else {
res.status(200).end()
}
const {action, id} = req.query;
// do something with the payload
}));
callback(err, req, res, verified, payload)