[Vuejs]-Node – How to get POST request params and then redirect user in express

1👍

From what you have it’s pretty simple :

app.post('/action', (req, res) => {   
  // how I can get the passed params here and redirect user?
  console.log(req.body)// give you the passed parameter in post request thanks to app.use( express.json() );
  res.redirect('http://google.com');
});

Leave a comment