app.js
var routes = require('./routes/index');
var users = require('./routes/users');
挂载路由
app.use('/', routes);
app.use('/users', users);
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
module.exports = router;
更多见http里的verb章节