Hello. I have a comment form here http://ift.tt/2gPaEtn I want to when someone makes a new comment or reply, that it posts to the database without reloading the page.I have a comments POST route setup, but I can't get the req.body data to send to that POST request.app.post('/p/:user/comments', function(req, res){ console.log(req.body); }); the console log returns and empty object {}any help with this issue would be greatly appreciated. I am fairly new to the async side of things.Thank you!
Submitted December 06, 2016 at 09:21PM by clandest
No comments:
Post a Comment