I'm using Express framework, app.use() in app.js and router.get() in users.js. When I search localhost:3000/users/u it works fine, but when I search localhost:3000/users, it's a 404 error. What's wrong?
app.use()
router.get()
localhost:3000/users/u
localhost:3000/users
No comments:
Post a Comment