UNPKG

keystone

Version:

Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose

13 lines (12 loc) 321 B
module.exports = function initExpressApp (customApp) { if (this.app) return this; this.initDatabaseConfig(); this.initExpressSession(this.mongoose); if (customApp) { this.app = customApp; require('../../server/createApp')(this); } else { this.app = require('../../server/createApp')(this); } return this; };