I believe the answer to this question is out of date because of this answer.
I've read solutions about a npm packaged called body-parser, but I don't want to use it if I can find another way. I just simply want to parse POST data in node.
I have an ajax function like this:
$.ajax {
    url: '/foo',
    method: 'POST',
    data: {foo: "foo", bar: "bar"}
}
something like:
app.post('/foo', function(req, res) {
    var postFoo = req.foo; // How do I do this? 
});
 
     
    