I'm running into a brick wall. I need my API to allow for both access via regular form post (application/x-www-form-urlencoded) and JSON (application/json).
If the incoming request is application/json content type, I need to use req.body rather than req.params.
Completely lost on how to accomplish this.
Any thoughts?