I want to put variables inside res redirect inside the post route and then get that variable in get route. I don't know how to do it. Thank you.
router.post("/message", function(req, res) {
var email = req.body.email;
res.redirect("/passingemail/<%= email %>"); // I try to put the variable email like this but it doesn't work
});
//my goal is I want to get the value here
router.get("/paddingemail/:email", function (req, res){
});