Permalink
Browse files

Some additional updates because of some minor changes to the Express API

  • Loading branch information...
1 parent 3d01cc8 commit 8ee9be4638d683b07f86b93b5771f29dc3455a19 @Narven Narven 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 8ee9be4

Please sign in to comment.