aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.js b/server.js
index d3718f8de..317d8c3cd 100644
--- a/server.js
+++ b/server.js
@@ -6,6 +6,7 @@
6 6
7 // ----------- Node modules ----------- 7 // ----------- Node modules -----------
8 var express = require('express') 8 var express = require('express')
9 var expressValidator = require('express-validator')
9 var path = require('path') 10 var path = require('path')
10 var morgan = require('morgan') 11 var morgan = require('morgan')
11 var bodyParser = require('body-parser') 12 var bodyParser = require('body-parser')
@@ -47,6 +48,7 @@
47 app.use(bodyParser.json()) 48 app.use(bodyParser.json())
48 app.use(multer({ dest: uploads })) 49 app.use(multer({ dest: uploads }))
49 app.use(bodyParser.urlencoded({ extended: false })) 50 app.use(bodyParser.urlencoded({ extended: false }))
51 app.use(expressValidator())
50 52
51 // ----------- Views, routes and static files ----------- 53 // ----------- Views, routes and static files -----------
52 54