Express Route (Optional parameters)
问题 I have a problem getting my route to work. I have based the route organisation on : Organizing your app routes with the Express 4 Router Here is app.js : var express = require('express'); var router = express.Router(); express.use('/object-settings', require("./route/object-settings"); express.use('/object-settings-edit', require("./route/object-settings-edit"); Now the file object-settings var express = require('express'); var router = express.Router(); router.get('/', function (req, res) {