I'm tring ti redirect user request to another url on post with some additional data.
Lets say user do POST /profile/update
After I want to redirect user to another url with some additional data.
For example to: POST /test body
with some body: {"foo":"bar"}
Is it possible to do ? If yes then how :)
app.post('/profile/update', function(req, res) {
res.redirect(307, '/test')
// but dont know how to pass some body here: {"foo":"bar"}
});