Skip to content

1.1.0

Latest
Compare
Choose a tag to compare
@ddo ddo released this 28 Apr 20:26
· 1 commit to master since this release
  • rename mvc.setting to mvc.settings

  • models: all the orm models
  • settings: the running setings
  • mode: 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
};