mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-03-21 11:03:15 +00:00
refactor(server): 修复函数名拼写错误
- 将 consturctServer 函数名更正为 constructServer - 更新调用处的函数名称以保持一致性
This commit is contained in:
parent
3647fc5fa0
commit
7b2507e43d
@ -133,7 +133,7 @@ async function checkVersion() {
|
||||
* @param {ModuleDefinition[]} [moduleDefs] Customized module definitions [advanced]
|
||||
* @returns {Promise<import("express").Express>} The server instance.
|
||||
*/
|
||||
async function consturctServer(moduleDefs) {
|
||||
async function constructServer(moduleDefs) {
|
||||
const app = express()
|
||||
const { CORS_ALLOW_ORIGIN } = process.env
|
||||
app.set('trust proxy', true)
|
||||
@ -359,7 +359,7 @@ async function serveNcmApi(options) {
|
||||
)
|
||||
}
|
||||
})
|
||||
const constructServerSubmission = consturctServer(options.moduleDefs)
|
||||
const constructServerSubmission = constructServer(options.moduleDefs)
|
||||
|
||||
const [_, app] = await Promise.all([
|
||||
checkVersionSubmission,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user