diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-31 20:58:43 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-31 20:58:43 +0200 |
commit | e4c556196d7b31111f17596840d2e1d60caa7dcb (patch) | |
tree | 41be84f002600aa0153ac09cc5d79fdd90d126e3 /server.js | |
parent | e62f6ef741c8d14817e321c554796ad64ea7ae1b (diff) | |
download | PeerTube-e4c556196d7b31111f17596840d2e1d60caa7dcb.tar.gz PeerTube-e4c556196d7b31111f17596840d2e1d60caa7dcb.tar.zst PeerTube-e4c556196d7b31111f17596840d2e1d60caa7dcb.zip |
Server: reorganize express validators
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ app.use(bodyParser.json()) | |||
53 | app.use(bodyParser.urlencoded({ extended: false })) | 53 | app.use(bodyParser.urlencoded({ extended: false })) |
54 | // Validate some params for the API | 54 | // Validate some params for the API |
55 | app.use(expressValidator({ | 55 | app.use(expressValidator({ |
56 | customValidators: customValidators | 56 | customValidators: Object.assign({}, customValidators.misc, customValidators.users, customValidators.videos) |
57 | })) | 57 | })) |
58 | 58 | ||
59 | // ----------- Views, routes and static files ----------- | 59 | // ----------- Views, routes and static files ----------- |