X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.js;h=d38c5830f3f0ac565fbfdbe4b5554c98dc7c2bad;hb=e4c556196d7b31111f17596840d2e1d60caa7dcb;hp=b2eeeff70edcd6494f3cd23e30ad5a8a3e6cfeaf;hpb=5f698b82c7055df763f3830882ac5bad1397db23;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.js b/server.js index b2eeeff70..d38c5830f 100644 --- a/server.js +++ b/server.js @@ -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 -----------