Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 477 Bytes

config.express.md

File metadata and controls

19 lines (14 loc) · 477 Bytes

Express

This configuration file lets you easily add Express middleware, local variables and helpers for templates and directly access the application instance before it starts.

module.exports.express = {

  customMiddleware: false
  
  /*
  // Say you want to use `connect-flash` for messaging within a session 
  customMiddleware: function (app) {
    var flash = require('connect-flash');
    app.use(flash());
  }
  
  */
  
};