X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.js;h=d38c5830f3f0ac565fbfdbe4b5554c98dc7c2bad;hb=7eef95353f9202e1f3285606282fc8fd904c90ef;hp=e0284b0802c675db6cec0ac263cdcb918bd0038b;hpb=69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.js b/server.js index e0284b080..d38c5830f 100644 --- a/server.js +++ b/server.js @@ -30,7 +30,7 @@ if (miss.length !== 0) { } // ----------- PeerTube modules ----------- -const customValidators = require('./server/helpers/customValidators') +const customValidators = require('./server/helpers/custom-validators') const installer = require('./server/initializers/installer') const mongoose = require('mongoose') const routes = require('./server/controllers') @@ -53,7 +53,7 @@ app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: false })) // Validate some params for the API app.use(expressValidator({ - customValidators: customValidators + customValidators: Object.assign({}, customValidators.misc, customValidators.users, customValidators.videos) })) // ----------- Views, routes and static files -----------