journey
journey copied to clipboard
How to get Post with form data?
In the documentation it says:
"How about a POST request, with form data, or JSON? Same thing, journey will parse the data, and pass it as the last argument to the bound function."
router.post('/').bind(function (req, res, params) { console.log(params); res.send(200, {"Content-Type":"application/json"}, params); });
But I'm getting back empty for params or whatever else I call the last argument.
same here. I am also wondering how to post with data, e.g. a image.
I got [] for the last argument in post too.
no idea? anyone? :(