I'm trying to redirect a user request to another url on post with some additional data.
Lets say the user does POST /profile/update
Afterwards, I want to redirect the user to another url with some additional data.
e.g., POST /test body with a body, {"foo": "bar"}
How can I do this?
app.post('/profile/update', function(req, res) { res.redirect(307, '/test') // but dont know how to pass some body here: {"foo":"bar"} });