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

Commit

Permalink
Load dynamic view-helpers after connect-flash and express.session
Browse files Browse the repository at this point in the history
  • Loading branch information
diegonetto committed Aug 8, 2013
1 parent f026371 commit 5e1b568
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ module.exports = function (app, config, passport) {
app.enable("jsonp callback")

app.configure(function () {
// dynamic helpers
app.use(helpers(config.app.name))

// cookieParser should be above session
app.use(express.cookieParser())

Expand All @@ -55,6 +52,9 @@ module.exports = function (app, config, passport) {
// connect flash for flash messages
app.use(flash())

// dynamic helpers
app.use(helpers(config.app.name))

// use passport session
app.use(passport.initialize())
app.use(passport.session())
Expand Down

0 comments on commit 5e1b568

Please sign in to comment.