Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kethinov committed May 16, 2015
1 parent 50011b3 commit ae2c5ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/setExpressConfigs.js
Expand Up @@ -4,7 +4,6 @@
var wrench = require('wrench'),
morgan = require('morgan'), // express logger
bodyParser = require('body-parser'), // express body parser
methodOverride = require('method-override'), // express body parser
prequire = require('parent-require'),
colors = require('colors');

Expand Down Expand Up @@ -59,7 +58,7 @@ module.exports = function(app) {
app.use(bodyParser.json());

// enables PUT and DELETE requests via <input type='hidden' name='_method' value='put'> and suchlike
app.use(methodOverride());
app.use(require('method-override')());

// 500 internal server error page
app.use(function(err, req, res, next){
Expand Down

0 comments on commit ae2c5ff

Please sign in to comment.