-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help with express.router not working ?? #36
Comments
Something was definitely not right in the way I built the app. I have seen other people complining about similar issues and that recreating the app would solve it. The one that worked for me was using express-generator in a Ubuntu WSL session |
I'm at the step where you implement the routes using express.router.
If I use "app.get("/"... " in app.js it works fine. But when I try
app.use("/", require("./routes/index"))
it fails with "GET / 404".It can't read the route.
Is there is something I'm not doing right?
The text was updated successfully, but these errors were encountered: