diff options
author | Timoney, Dan (dt5972) <dtimoney@att.com> | 2018-11-06 13:39:01 -0500 |
---|---|---|
committer | Timoney, Dan (dt5972) <dtimoney@att.com> | 2018-11-06 13:39:01 -0500 |
commit | b9b3b4b74e70cae099a6ccb0dd06427fdb5a2279 (patch) | |
tree | 70144dcfb7684b64f2c1fcb35dac538423a101d3 /dgbuilder/dgeflows/node_modules/express/lib/express.js | |
parent | 78b70b90a20d8e6cd7e9b1da62397aa78b09b7ed (diff) |
Remove obsolete dgbuilder
SDNC dgbuilder is no longer used - dgbuilder is now in CCSDK.
Change-Id: I496e346ed3864779f36c00c354742f7d36447399
Issue-ID: SDNC-488
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Former-commit-id: e38fe292bd511784d1c145e84a9af7d94b6f3669
Diffstat (limited to 'dgbuilder/dgeflows/node_modules/express/lib/express.js')
-rw-r--r-- | dgbuilder/dgeflows/node_modules/express/lib/express.js | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/dgbuilder/dgeflows/node_modules/express/lib/express.js b/dgbuilder/dgeflows/node_modules/express/lib/express.js deleted file mode 100644 index 8a6c2846..00000000 --- a/dgbuilder/dgeflows/node_modules/express/lib/express.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Module dependencies. - */ - -var EventEmitter = require('events').EventEmitter; -var mixin = require('merge-descriptors'); -var proto = require('./application'); -var Route = require('./router/route'); -var Router = require('./router'); -var req = require('./request'); -var res = require('./response'); - -/** - * Expose `createApplication()`. - */ - -exports = module.exports = createApplication; - -/** - * Create an express application. - * - * @return {Function} - * @api public - */ - -function createApplication() { - var app = function(req, res, next) { - app.handle(req, res, next); - }; - - mixin(app, proto); - mixin(app, EventEmitter.prototype); - - app.request = { __proto__: req, app: app }; - app.response = { __proto__: res, app: app }; - app.init(); - return app; -} - -/** - * Expose the prototypes. - */ - -exports.application = proto; -exports.request = req; -exports.response = res; - -/** - * Expose constructors. - */ - -exports.Route = Route; -exports.Router = Router; - -/** - * Expose middleware - */ - -exports.query = require('./middleware/query'); -exports.static = require('serve-static'); - -/** - * Replace removed middleware with an appropriate error message. - */ - -[ - 'json', - 'urlencoded', - 'bodyParser', - 'compress', - 'cookieSession', - 'session', - 'logger', - 'cookieParser', - 'favicon', - 'responseTime', - 'errorHandler', - 'timeout', - 'methodOverride', - 'vhost', - 'csrf', - 'directory', - 'limit', - 'multipart', - 'staticCache', -].forEach(function (name) { - Object.defineProperty(exports, name, { - get: function () { - throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.'); - }, - configurable: true - }); -}); |