mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-03 23:52:09 +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 => {
|
.forEach(file => {
|
||||||
if (!/\.js$/i.test(file)) return
|
if (!/\.js$/i.test(file)) return
|
||||||
let route = (file in UnusualRouteFileMap) ? UnusualRouteFileMap[file] : '/' + file.replace(/\.js$/i, '').replace(/_/g, '/')
|
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