steep-balloon-41261
10/17/2022, 7:20 AMdry-elephant-14928
10/17/2022, 7:25 PMraw handler for this path. Something like:
router.use('/webhook/path', express.raw());melodic-mouse-64555
10/18/2022, 3:07 AMmelodic-mouse-64555
10/18/2022, 3:17 AMthis.app.use('/webhook',function(req, res, next){
var data = "";
req.on('data', function(chunk){ data += chunk})
req.on('end', function(){
req.rawBody = data;
next();
})
});
i think it will usefull for someone 🙂dry-elephant-14928
10/18/2022, 7:38 AM