mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-04 05:12:08 +08:00
error fixed
This commit is contained in:
parent
d1ae7f4b56
commit
8fb18f030b
2
app.js
2
app.js
@ -87,7 +87,7 @@ fs.readdirSync(path.join(__dirname, 'router'))
|
||||
.forEach(file => {
|
||||
if (!/\.js$/i.test(file)) return
|
||||
let route = (file in UnusualRouteFileMap) ? UnusualRouteFileMap[file] : '/' + file.replace(/\.js$/i, '').replace(/_/g, '/')
|
||||
app.use(route, Wrap(path.join(__dirname, 'router', file)))
|
||||
app.use(route, Wrap(require(path.join(__dirname, 'router', file))))
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user