From 8ad4728140810f2500acdfec707779843bc8efef Mon Sep 17 00:00:00 2001 From: Amos Haviv Date: Mon, 21 Apr 2014 01:13:14 +0300 Subject: [PATCH] Comment Fixes --- config/express.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/express.js b/config/express.js index 196d786ff3..0b3560d397 100755 --- a/config/express.js +++ b/config/express.js @@ -28,6 +28,7 @@ module.exports = function(db) { require(path.resolve(modelPath)); }); + // Setting application local variables app.locals.title = config.app.title; app.locals.description = config.app.description; app.locals.keywords = config.app.keywords; @@ -70,8 +71,7 @@ module.exports = function(db) { app.locals.cache = 'memory'; } - - // request body parsing middleware should be above methodOverride + // Request body parsing middleware should be above methodOverride app.use(bodyParser.urlencoded()); app.use(bodyParser.json()); app.use(methodOverride()); @@ -79,10 +79,10 @@ module.exports = function(db) { // Enable jsonp app.enable('jsonp callback'); - // cookieParser should be above session + // CookieParser should be above session app.use(cookieParser()); - // express/mongo session storage + // Express MongoDB session storage app.use(session({ secret: config.sessionSecret, store: new mongoStore({