journey icon indicating copy to clipboard operation
journey copied to clipboard

How to get Post with form data?

Open alexkirmse opened this issue 13 years ago • 2 comments

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.

alexkirmse avatar May 27 '11 15:05 alexkirmse

same here. I am also wondering how to post with data, e.g. a image.

I got [] for the last argument in post too.

xinliu8 avatar Aug 16 '11 01:08 xinliu8

no idea? anyone? :(

kevsmt avatar Dec 13 '11 18:12 kevsmt