app.use("/", (req, res) => {
res.redirect("https://www.google.com");
});
app.use("/app/v1", app);
I have this code and trying to redirect only on localhost:9999/. However, when I do localhost:9999/app/v1, I still get redirected by the app. Is there anyway that I can set the express to redirect only when the incoming url is just /?