All files / server/plugins/connect index.js

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23    9x                                     9x  
// Middleware plugin
// Restore some of the old Express functionality
const plugin = {
  name: 'connect',
  options: {
    compress: {},
    session: {
      resave: false,
      saveUninitialized: true,
      cookie: {}
    },
    responseTime: {},
    csrf: {}
  },
 
  errors: require('./errors'),
 
  init: require('./init'),
  before: []   // It is populated in "init()"
};
 
module.exports = plugin;