aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config/express.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-14 13:11:28 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-14 13:11:28 +0200
commit86148cf9f247f62552270fc997a77a7f88c5408c (patch)
tree92a2609484d0dd3c4edc9d300686c2314c8fb543 /config/express.js
parentadded check for permissions as well as check for access (diff)
downloadDivid-86148cf9f247f62552270fc997a77a7f88c5408c.tar.gz
new errorhandler.. uses node-validator now
Diffstat (limited to '')
-rw-r--r--config/express.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/config/express.js b/config/express.js
index 034eff5..eb10b20 100644
--- a/config/express.js
+++ b/config/express.js
@@ -3,8 +3,7 @@
* Module dependencies
*/
-var express = require('express')
- , expressValidator = require('express-validator');
+var express = require('express');
/**
@@ -29,8 +28,6 @@ module.exports = function (app, config, passport) {
app.use(express.bodyParser()); //must be above methodOverride
- app.use(expressValidator); // loads validation
-
app.use(express.methodOverride());
app.use(express.session({ secret: 'lsdrghoi4hgqio42nqf2uqi32f3bilu23fl23b' }));