aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/server.js b/server.js
index d38c5830f..676597fae 100644
--- a/server.js
+++ b/server.js
@@ -53,7 +53,13 @@ app.use(bodyParser.json())
53app.use(bodyParser.urlencoded({ extended: false })) 53app.use(bodyParser.urlencoded({ extended: false }))
54// Validate some params for the API 54// Validate some params for the API
55app.use(expressValidator({ 55app.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 -----------