Fix code style

This commit is contained in:
Typicode
2015-05-13 18:34:22 +02:00
parent ce73c479b4
commit b1ca61ba9e
8 changed files with 105 additions and 100 deletions

View File

@ -8,14 +8,14 @@ var arr = []
// Logger
arr.push(logger('dev', {
skip: function(req, res) { return req.path === '/favicon.ico' }
skip: function (req, res) { return req.path === '/favicon.ico' }
}))
// Serve static files
if (fs.existsSync(process.cwd() + '/public')) {
arr.push(express.static(process.cwd() + '/public'));
arr.push(express.static(process.cwd() + '/public'))
} else {
arr.push(express.static(__dirname + '/public'));
arr.push(express.static(__dirname + '/public'))
}
// CORS
@ -26,4 +26,4 @@ if (process.env.NODE_ENV === 'development') {
arr.push(errorhandler())
}
module.exports = arr
module.exports = arr