Answers for "express redirect to another router"

4

express redirect to url

app.get("/where", (req, res) => {
   res.status(301).redirect("https://www.google.com")
}) //You need to include the status (301)
Posted by: Guest on October-19-2021

Code answers related to "express redirect to another router"

Code answers related to "Javascript"

Browse Popular Code Answers by Language