mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
update:文档结构调整
This commit is contained in:
@@ -135,7 +135,10 @@ async function consturctServer(moduleDefs) {
|
||||
const app = express()
|
||||
const { CORS_ALLOW_ORIGIN } = process.env
|
||||
app.set('trust proxy', true)
|
||||
|
||||
/**
|
||||
* Serving static files
|
||||
*/
|
||||
app.use(express.static(path.join(__dirname, 'public')))
|
||||
/**
|
||||
* CORS & Preflight request
|
||||
*/
|
||||
@@ -177,11 +180,6 @@ async function consturctServer(moduleDefs) {
|
||||
|
||||
app.use(fileUpload())
|
||||
|
||||
/**
|
||||
* Serving static files
|
||||
*/
|
||||
app.use(express.static(path.join(__dirname, 'public')))
|
||||
|
||||
/**
|
||||
* Cache
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user