Skip to content

Commit

Permalink
template strings
Browse files Browse the repository at this point in the history
  • Loading branch information
skibz committed Jun 30, 2016
1 parent 2918308 commit 5c9ae0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ if (!TESTING && NODE_ENV === 'development') {
}

fs.readdirSync(
__dirname + '/routes'
`${__dirname}/routes`
).map(function(file) {
return require('./routes/' + file)
return require(`./routes/${file}`)
}).reduce(function(prev, curr) {
return prev.concat(curr)
}).forEach(function (route) {
}).forEach(function(route) {
server[route.method](
route.uri,
route.callback
Expand Down

0 comments on commit 5c9ae0f

Please sign in to comment.