Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1 from Narven/patch-1

Some additional updates because of some minor changes to the Express API
  • Loading branch information...
commit bd0063fcf5e566ae6f0e4faead392e0ea5848262 2 parents 3d01cc8 + 8ee9be4
Pedro Teixeira authored

Showing 1 changed file with 6 additions and 5 deletions. Show diff stats Hide diff stats

  1. +6 5 app.js
11 app.js
@@ -8,13 +8,14 @@ var MemStore = require('connect/middleware/session/memory');
8 8
9 9 app.configure(function() {
10 10 app.use(express.logger());
11   - app.use(express.bodyDecoder());
  11 + app.use(express.bodyParser());
12 12 app.use(express.methodOverride());
13   - app.use(express.staticProvider(__dirname + '/static'));
14   - app.use(express.cookieDecoder());
15   - app.use(express.session({store: MemStore( {
  13 + app.use(express.static(__dirname + '/static'));
  14 + app.use(express.cookieParser());
  15 + app.use(express.session({store: MemStore({
16 16 reapInterval: 60000 * 10
17   - })}));
  17 + }), secret:'foobar'
  18 +}));
18 19 });
19 20
20 21 app.configure('development', function () {

0 comments on commit bd0063f

Please sign in to comment.
Something went wrong with that request. Please try again.