mercredi 9 décembre 2020

Response.redirect with text

Let's say I have a function which ends with a response.redirect('/'). How can I parse a message along which is shown on that path? Here is a breift example:

expressApp.post("/test", function(request, response) { 
 if (user) {
            response.redirect('/')
        }
}

There is more to the function but this is enough for the question here. How can I parse a message or some text to the path "/" and display it in my view?

Aucun commentaire:

Enregistrer un commentaire