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:
parent
6c1a098b41
commit
d57d6f2605
6 changed files with 145 additions and 115 deletions
|
@ -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 -----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue