summaryrefslogtreecommitdiffstats
path: root/dgbuilder/dgeflows/node_modules/express/lib/middleware
diff options
context:
space:
mode:
authorTimoney, Dan (dt5972) <dtimoney@att.com>2018-11-06 13:39:01 -0500
committerTimoney, Dan (dt5972) <dtimoney@att.com>2018-11-06 13:39:01 -0500
commitb9b3b4b74e70cae099a6ccb0dd06427fdb5a2279 (patch)
tree70144dcfb7684b64f2c1fcb35dac538423a101d3 /dgbuilder/dgeflows/node_modules/express/lib/middleware
parent78b70b90a20d8e6cd7e9b1da62397aa78b09b7ed (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/middleware')
-rw-r--r--dgbuilder/dgeflows/node_modules/express/lib/middleware/init.js26
-rw-r--r--dgbuilder/dgeflows/node_modules/express/lib/middleware/query.js30
2 files changed, 0 insertions, 56 deletions
diff --git a/dgbuilder/dgeflows/node_modules/express/lib/middleware/init.js b/dgbuilder/dgeflows/node_modules/express/lib/middleware/init.js
deleted file mode 100644
index 1e3e903f..00000000
--- a/dgbuilder/dgeflows/node_modules/express/lib/middleware/init.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Initialization middleware, exposing the
- * request and response to each other, as well
- * as defaulting the X-Powered-By header field.
- *
- * @param {Function} app
- * @return {Function}
- * @api private
- */
-
-exports.init = function(app){
- return function expressInit(req, res, next){
- if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express');
- req.res = res;
- res.req = req;
- req.next = next;
-
- req.__proto__ = app.request;
- res.__proto__ = app.response;
-
- res.locals = res.locals || Object.create(null);
-
- next();
- };
-};
-
diff --git a/dgbuilder/dgeflows/node_modules/express/lib/middleware/query.js b/dgbuilder/dgeflows/node_modules/express/lib/middleware/query.js
deleted file mode 100644
index 092bbd99..00000000
--- a/dgbuilder/dgeflows/node_modules/express/lib/middleware/query.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Module dependencies.
- */
-
-var parseUrl = require('parseurl');
-var qs = require('qs');
-
-/**
- * @param {Object} options
- * @return {Function}
- * @api public
- */
-
-module.exports = function query(options) {
- var queryparse = qs.parse;
-
- if (typeof options === 'function') {
- queryparse = options;
- options = undefined;
- }
-
- return function query(req, res, next){
- if (!req.query) {
- var val = parseUrl(req).query;
- req.query = queryparse(val, options);
- }
-
- next();
- };
-};