Skip to content
Browse files

Merge pull request #1 from Narven/patch-1

Some additional updates because of some minor changes to the Express API
  • Loading branch information...
2 parents 3d01cc8 + 8ee9be4 commit bd0063fcf5e566ae6f0e4faead392e0ea5848262 @pgte committed Jun 29, 2011
Showing with 6 additions and 5 deletions.
  1. +6 −5 app.js
View
11 app.js
@@ -8,13 +8,14 @@ var MemStore = require('connect/middleware/session/memory');
app.configure(function() {
app.use(express.logger());
- app.use(express.bodyDecoder());
+ app.use(express.bodyParser());
app.use(express.methodOverride());
- app.use(express.staticProvider(__dirname + '/static'));
- app.use(express.cookieDecoder());
- app.use(express.session({store: MemStore( {
+ app.use(express.static(__dirname + '/static'));
+ app.use(express.cookieParser());
+ app.use(express.session({store: MemStore({
reapInterval: 60000 * 10
- })}));
+ }), secret:'foobar'
+}));
});
app.configure('development', function () {

0 comments on commit bd0063f

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