Skip to content

Commit

Permalink
Remove deprecated bodyParser
Browse files Browse the repository at this point in the history
  • Loading branch information
neumino committed Dec 30, 2013
1 parent dbbb26b commit bec463a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ module.exports = function(configFile) {
app.set('view options', {
layout: false
});
app.use(express.bodyParser());
app.use(express.json());
app.use(express.urlencoded());


app.use(express.methodOverride());
app.use(express.static(__dirname + '/public'));
app.use(app.router);
Expand Down

0 comments on commit bec463a

Please sign in to comment.