Add comments

This commit is contained in:
Typicode
2015-03-23 19:27:19 +01:00
parent e91aee141f
commit fbf993818d
2 changed files with 10 additions and 6 deletions

View File

@ -9,9 +9,12 @@ var errorhandler = require('errorhandler')
module.exports = function() {
var server = express()
// Logger
server.use(logger('dev', {
skip: function(req, res) { return req.path === '/favicon.ico' }
}))
// Beautify JSON
server.set('json spaces', 2)
// Serve static files