diff --git a/packages/express/index.js b/packages/express/index.js index 80b98603e6..d96444ce4e 100644 --- a/packages/express/index.js +++ b/packages/express/index.js @@ -1,15 +1,13 @@ 'use strict'; -var utils = require('./lib/utils'); -var createApp = require('./lib/app'); - -module.exports = { +module.exports = exports = { runServer: function runServer(options, callback) { - utils.run(createApp(options), callback); + return exports.utils.run(exports.createApp(options), callback); + }, + get createApp() { + return require('./lib/app'); }, - startServer: function(callback) { - module.exports.runServer({}, callback); + get utils() { + return require('./lib/utils'); }, - createApp: createApp, - utils: utils, };