Skip to content

How to get Post with form data? #15

@alexkirmse

Description

@alexkirmse

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions