1app.get("/where", (req, res) => {
2 res.status(301).redirect("https://www.google.com")
3}) //You need to include the status (301)
1res.redirect('/foo/bar')
2res.redirect('http://example.com')
3res.redirect(301, 'http://example.com')
4res.redirect('../login')
5