How to redirect to a page with node js?

1

I can do this more with a route, but I want to do something like:

app.redirect(url);

and not:

app.get('/', function(req, res) {
   res.redirect(url);
});

Can anyone help me? vlw, and obgd!

    
asked by anonymous 18.03.2016 / 18:21

0 answers