mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
rename for neatness
This commit is contained in:
parent
0d373be689
commit
981c0f7d39
3
app.js
3
app.js
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user