mirror of
https://github.com/palxiao/poster-design
synced 2024-11-21 23:30:11 +00:00
update: test data
This commit is contained in:
parent
a203c41ea4
commit
727ff9d20b
@ -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)
|
||||||
|
|
||||||
|
BIN
service/src/mock/assets/1.png
Normal file
BIN
service/src/mock/assets/1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
service/src/mock/assets/2.png
Normal file
BIN
service/src/mock/assets/2.png
Normal file
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
Loading…
Reference in New Issue
Block a user