router.get('/') handles any request in Express app

前端 未结 0 1891
慢半拍i
慢半拍i 2020-11-27 08:06

In app.js I have:

const routes = \'./routes/\'
const usersRouter = require(routes +\'users\');

/*more code*/

app.use(\'/users\', usersRouter);

相关标签:
回答
  • 消灭零回复
提交回复
热议问题