aboutsummaryrefslogtreecommitdiffhomepage
path: root/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'middlewares')
-rw-r--r--middlewares/index.js10
-rw-r--r--middlewares/reqValidators/index.js10
2 files changed, 14 insertions, 6 deletions
diff --git a/middlewares/index.js b/middlewares/index.js
index c76c4fc2e..c85899b0c 100644
--- a/middlewares/index.js
+++ b/middlewares/index.js
@@ -1,9 +1,13 @@
1'use strict' 1'use strict'
2 2
3var cacheMiddleware = require('./cache')
4var reqValidatorsMiddleware = require('./reqValidators')
5var secureMiddleware = require('./secure')
6
3var middlewares = { 7var middlewares = {
4 cache: require('./cache'), 8 cache: cacheMiddleware,
5 reqValidators: require('./reqValidators'), 9 reqValidators: reqValidatorsMiddleware,
6 secure: require('./secure') 10 secure: secureMiddleware
7} 11}
8 12
9// --------------------------------------------------------------------------- 13// ---------------------------------------------------------------------------
diff --git a/middlewares/reqValidators/index.js b/middlewares/reqValidators/index.js
index 344387a80..345dbd0e2 100644
--- a/middlewares/reqValidators/index.js
+++ b/middlewares/reqValidators/index.js
@@ -1,9 +1,13 @@
1'use strict' 1'use strict'
2 2
3var podsReqValidators = require('./pods')
4var remoteReqValidators = require('./remote')
5var videosReqValidators = require('./videos')
6
3var reqValidators = { 7var reqValidators = {
4 videos: require('./videos'), 8 pods: podsReqValidators,
5 pods: require('./pods'), 9 remote: remoteReqValidators,
6 remote: require('./remote') 10 videos: videosReqValidators
7} 11}
8 12
9// --------------------------------------------------------------------------- 13// ---------------------------------------------------------------------------