Pass parameters from a res.render


Good morning I need to pass parameters to my an Express app.get function from a res.render. The truth is the first time that occurs to me and I have no idea how to do it. In this line of code should pass a parameter;

   'res.render("usuarios", tipos);'

and in my role you should get it:

    app.get("/usuarios", (req, res) => {
        let tipo: req.params.tipo;
asked by Pedro Buccellati 22.11.2018 в 19:23

0 answers