All files / server/plugins/core index.js

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46    14x                                                                                      
// Middleware plugin
// Restore some of the old Express functionality
module.exports = {
  name: 'core',
  options: {
    compress: {
      default: {},
      type: Object
    },
    // public: {
    //   type: String,
    //   inherit: 'public',
    //   clean: (value, option) => {
    //     if (/^win/.test(process.platform) && value === 'C:\\Users\\Public') {
    //       return option.parent.public;
    //     }
    //     return value;
    //   }
    // },
    favicon: {
      type: String
    },
    session: {
      default: {
        resave: false,
        saveUninitialized: true,
        cookie: {}
      },
      type: Object,
      env: 'express-session',
      extend: true
    },
    timing: {
      default: {},
      type: Object
    },
    csrf: {
      default: {},
      type: Object
    }
  },
 
  init: require('./init'),
  before: []   // It is populated in "init()"
};