Closed AdamBrodzinski closed 9 years ago
I can't find any info the guides or issues... is there a way to redirect inside of the route? I tried using req.redirect('/foo') but redirect was undefined.
req.redirect('/foo')
This is a low level router. So, you need to do this.
res.writeHead(301, {Location: "/foo"}); res.end();
Ah! Thanks!! Hey you're the best @arunoda !! :beers:
I can't find any info the guides or issues... is there a way to redirect inside of the route? I tried using
req.redirect('/foo')
but redirect was undefined.