Skip to content

Commit

Permalink
setting morgan for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sevilleja committed Jul 18, 2014
1 parent 75d5cd1 commit 7051feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var methodOverride = require('method-override');
mongoose.connect(database.url); // connect to mongoDB database on modulus.io

app.use(express.static(__dirname + '/public')); // set the static files location /public/img will be /img for users
app.use(morgan()); // log every request to the console
app.use(morgan('dev')); // log every request to the console
app.use(bodyParser.urlencoded({'extended':'true'})); // parse application/x-www-form-urlencoded
app.use(bodyParser.json()); // parse application/json
app.use(bodyParser.json({ type: 'application/vnd.api+json' })); // parse application/vnd.api+json as json
Expand Down

0 comments on commit 7051feb

Please sign in to comment.