- rename mvc.setting to mvc.settings
models
: all the orm modelssettings
: the running setingsmode
: the running mode
###from express req
function (req, res, next) {
req.models;
req.settings;
req.mode;
}
###from express config file
//config/express.js
module.exports = function(app, express, mvc) {
mvc.mode
mvc.settings
};
###from orm config file
//config/orm.js
module.exports = function(orm, db, mvc) {
mvc.mode
mvc.settings
};