]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server.js
Client: fix friend add input control when removing an input
[github/Chocobozzz/PeerTube.git] / server.js
index b2eeeff70edcd6494f3cd23e30ad5a8a3e6cfeaf..8010d3e0698fdd443a8bdfe12966e5459034c16a 100644 (file)
--- a/server.js
+++ b/server.js
@@ -49,11 +49,17 @@ const port = config.get('listen.port')
 // For the logger
 app.use(morgan('combined', { stream: logger.stream }))
 // For body requests
-app.use(bodyParser.json())
+app.use(bodyParser.json({ limit: '500kb' }))
 app.use(bodyParser.urlencoded({ extended: false }))
 // Validate some params for the API
 app.use(expressValidator({
-  customValidators: customValidators
+  customValidators: Object.assign(
+    {},
+    customValidators.misc,
+    customValidators.pods,
+    customValidators.users,
+    customValidators.videos
+  )
 }))
 
 // ----------- Views, routes and static files -----------