Skip to content

Need help with express.router not working ?? #36

@FireFighter1017

Description

@FireFighter1017

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions