Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Comment Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshaviv committed Apr 20, 2014
1 parent 7792957 commit 8ad4728
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -70,19 +71,18 @@ 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());

// 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({
Expand Down

0 comments on commit 8ad4728

Please sign in to comment.