Skip to content

Commit

Permalink
Allows configuration of session and flash middleware components of ba…
Browse files Browse the repository at this point in the history
…tteries middleware.

This resolves issue #68.
  • Loading branch information
Nathan committed Jul 3, 2013
1 parent f73bbfd commit 3777fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ middleware.batteries = function(config, nextApp) {
middleware.directory(config.directory,
middleware.parted(config.parted || undefined,
middleware.methodOverride(
middleware.session(
middleware.flash(
middleware.session(config.session || undefined,
middleware.flash(config.flash || undefined,
middleware.bodyAdapter(
middleware.stringReturnAdapter(nextApp)))))))));

Expand Down

0 comments on commit 3777fa5

Please sign in to comment.