diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-21 10:08:40 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-21 10:41:04 +0200 |
commit | d57d6f2605f4ac4a81f9a8594433bb7b65f108b9 (patch) | |
tree | 4fd2c1a4930df841c16fad5858f4a93330add715 /server.js | |
parent | 6c1a098b4107cc923631d8cd94ed54c184fcec7d (diff) | |
download | PeerTube-d57d6f2605f4ac4a81f9a8594433bb7b65f108b9.tar.gz PeerTube-d57d6f2605f4ac4a81f9a8594433bb7b65f108b9.tar.zst PeerTube-d57d6f2605f4ac4a81f9a8594433bb7b65f108b9.zip |
Server: fix makefriends validation and tests
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -53,7 +53,13 @@ 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: Object.assign({}, customValidators.misc, customValidators.users, customValidators.videos) | 56 | customValidators: Object.assign( |
57 | {}, | ||
58 | customValidators.misc, | ||
59 | customValidators.pods, | ||
60 | customValidators.users, | ||
61 | customValidators.videos | ||
62 | ) | ||
57 | })) | 63 | })) |
58 | 64 | ||
59 | // ----------- Views, routes and static files ----------- | 65 | // ----------- Views, routes and static files ----------- |