Skip to content

Commit

Permalink
rename for neatness
Browse files Browse the repository at this point in the history
  • Loading branch information
nondanee committed Sep 25, 2018
1 parent 501bc33 commit ce02500
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ fs.readdirSync(path.resolve(__dirname, 'router'))
file
.replace(/\.js$/i, '')
.replace(/_/g, '/')
.replace(/[A-Z]/g, a => {
return '/' + a.toLowerCase()
})
}

app.use(route, Wrap(require('./router/' + file)))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ce02500

Please sign in to comment.