rename for neatness

This commit is contained in:
Nzix 2018-09-25 19:52:54 +08:00
parent 0d373be689
commit 981c0f7d39
4 changed files with 0 additions and 3 deletions

3
app.js
View File

@ -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)))