Navigation Menu

Skip to content

Commit

Permalink
Use bodyParser.json() instead of bodyParser itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 25, 2014
1 parent 0910ece commit 19ba468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/dashboard.js
Expand Up @@ -16,7 +16,7 @@ exports.register = function(application, params) {

application.set('views', path.join(topDirectory, 'views'));
application.set('view engine', 'jade');
application.use(prefix, bodyParser());
application.use(prefix, bodyParser.json());
application.use(prefix, methodOverride());
application.use(prefix, less(path.join(topDirectory, 'public')));
application.use(prefix, serveStatic(path.join(topDirectory, 'public')));
Expand Down

0 comments on commit 19ba468

Please sign in to comment.