index.js 363 Bytes
/**
 * sub app shopping
 * @author: jinhu.dong<jinhu.dong@yoho.cn>
 * @date: 2016/07/04
 */

var express = require('express');
var app = express();

app.on('mount', function(parent) {
    delete parent.locals.settings; // 不继承父 App 的设置
    Object.assign(app.locals, parent.locals);
});

// router
app.use(require('./router'));

module.exports = app;