update: test data

This commit is contained in:
ShawnPhang 2024-11-14 18:03:00 +08:00
parent a203c41ea4
commit 727ff9d20b
5 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
* @Date: 2022-02-01 13:41:59 * @Date: 2022-02-01 13:41:59
* @Description: * @Description:
* @LastEditors: ShawnPhang <https://m.palxp.cn> * @LastEditors: ShawnPhang <https://m.palxp.cn>
* @LastEditTime: 2024-08-12 06:18:56 * @LastEditTime: 2024-11-14 17:36:17
*/ */
const express = require('express') const express = require('express')
const bodyParser = require('body-parser') const bodyParser = require('body-parser')
@ -35,6 +35,9 @@ app.all('*', (req: any, res: any, next: any) => {
}) })
app.use('/static', setUploadContentType, express.static(process.cwd() + `/static/`)) app.use('/static', setUploadContentType, express.static(process.cwd() + `/static/`))
if (process.env.NODE_ENV === 'development') {
app.use('/store', setUploadContentType, express.static(process.cwd() + `/src/mock/assets`))
}
app.use(handleTimeout) app.use(handleTimeout)

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long