update:文档结构调整

This commit is contained in:
binaryify
2024-01-23 15:20:25 +08:00
parent 185031ddce
commit b8f9110f69
42 changed files with 9 additions and 1472 deletions
+4 -6
View File
@@ -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
*/