uncommented old code
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 65c0d14 · Browse files · 1 file·+46 added−70 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+46 added−70 removed
- other:+46 added−70 removed
Provenance
- Commit
ce03cf4- Tree
83e0c97- Author
Tj Holowaychuk <tj@vision-media.ca>- Committer
Tj Holowaychuk <tj@vision-media.ca>- Parent
65c0d14
1 file changed+46 added−70 removed
modified:lib/express.js+46 added-70 removed
12 unmodified lines1314151617171819202122232425262728293031323334351936373839408 unmodified lines49505152363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021035354555657585960616263646566676869707172737475767778798012 unmodified lines , proto = require('./proto') , Route = require('./router/route') , utils = connect.utils;
exports = module.exports = createServer;/** * Expose `createApplication()`. */
exports = module.exports = createApplication;
/** * Framework version. */
exports.version = '3.0.0alpha1';
/** * Create an express application. * * @return {Function} * @api public */
function createServer() {function createApplication() { var app = connect(); utils.merge(app, proto); app.init(); return app;8 unmodified lines var desc = Object.getOwnPropertyDescriptor(connect.middleware, key); Object.defineProperty(exports, key, desc);}
// /**// * Re-export connect auto-loaders.// * // * This prevents the need to `require('connect')` in order// * to access core middleware, so for example `express.logger()` instead// * of `require('connect').logger()`.// */// // exports = module.exports = connect.middleware;// // /**// * Framework version.// */// // exports.version = '3.0.0alpha1';// // /**// * Shortcut for `new Server(...)`.// *// * @param {Function} ...// * @return {Server}// * @api public// */// // exports.createServer = function(options){// if ('object' == typeof options) {// return new HTTPSServer(options, Array.prototype.slice.call(arguments, 1));// } else {// return new HTTPServer(Array.prototype.slice.call(arguments));// }// };// // /**// * Expose constructors.// */// // exports.HTTPServer = HTTPServer;// exports.HTTPSServer = HTTPSServer;// exports.Route = Route;// // /**// * Expose HTTP methods.// */// // exports.methods = require('./router/methods');// // /**// * View extensions.// */// // exports.View =// exports.view = require('./view');// // /**// * Response extensions.// */// // require('./response');// // /**// * Request extensions.// */// // require('./request');// // // Error handler title// // exports.errorHandler.title = 'Express';/** * Expose constructors. */
exports.Route = Route;
/** * Expose HTTP methods. */
exports.methods = require('./router/methods');
/** * Response extensions. */
require('./response');
/** * Request extensions. */
require('./request');
// Error handler title
exports.errorHandler.title = 'Express';