diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 | ||