1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Server: fix makefriends validation and tests

This commit is contained in:
Chocobozzz 2016-08-21 10:08:40 +02:00
parent 6c1a098b41
commit d57d6f2605
6 changed files with 145 additions and 115 deletions

View file

@ -53,7 +53,13 @@ app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
// Validate some params for the API
app.use(expressValidator({
customValidators: Object.assign({}, customValidators.misc, customValidators.users, customValidators.videos)
customValidators: Object.assign(
{},
customValidators.misc,
customValidators.pods,
customValidators.users,
customValidators.videos
)
}))
// ----------- Views, routes and static files -----------