Globals configuration

Description

The globals configuration file contains a set of Booleans indicating where a part of the engine is globally accessible or not

The available components are:

  • logger: The internal logger of the engine
  • models: The user defined models
  • app: The application object
  • express: The express object (also doing require('express') is available)
  • mongoose: The mongoose instance (also doing require('mongoose') is available)
  • env: The environment configuration of the application
  • security: The Security module of the engine

Example

module.exports = {
   logger: false,
   models: true,
   app: false,
   express: false,
   mongoose: false,
   env: false,
   security: true
};

results matching ""

    No results matching ""