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

Commit 5e1b568

Browse files
committed
Load dynamic view-helpers after connect-flash and express.session
1 parent f026371 commit 5e1b568

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/express.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ module.exports = function (app, config, passport) {
3333
app.enable("jsonp callback")
3434

3535
app.configure(function () {
36-
// dynamic helpers
37-
app.use(helpers(config.app.name))
38-
3936
// cookieParser should be above session
4037
app.use(express.cookieParser())
4138

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

55+
// dynamic helpers
56+
app.use(helpers(config.app.name))
57+
5858
// use passport session
5959
app.use(passport.initialize())
6060
app.use(passport.session())

0 commit comments

Comments
 (0)