]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - middlewares/reqValidators/index.js
Require on the top of the files
[github/Chocobozzz/PeerTube.git] / middlewares / reqValidators / index.js
index 34d34013c25af88e562bc70fc64cbe437adbd0e2..345dbd0e2a603b74d8836d3d8eb56946c3452164 100644 (file)
@@ -1,13 +1,15 @@
-;(function () {
-  'use strict'
+'use strict'
 
-  var reqValidators = {
-    videos: require('./videos'),
-    pods: require('./pods'),
-    remote: require('./remote')
-  }
+var podsReqValidators = require('./pods')
+var remoteReqValidators = require('./remote')
+var videosReqValidators = require('./videos')
 
-  // ---------------------------------------------------------------------------
+var reqValidators = {
+  pods: podsReqValidators,
+  remote: remoteReqValidators,
+  videos: videosReqValidators
+}
 
-  module.exports = reqValidators
-})()
+// ---------------------------------------------------------------------------
+
+module.exports = reqValidators