Node.js and express : Routes
问题 I have some trouble using the router from Express. I want to set up my routes with several files. I get my routes folder with 2 files: routes.js and inscription.js I do the following var inscription = require('./routes/inscription.js'); var routes = require('./routes/routes.js'); Then app.use('/', routes); app.use('/inscription', inscription); But only the routes from routes.js work... This is the content of routes.js var router = require('express').Router(); var bodyParser = require('body