mirror of
https://github.com/pure-admin/pure-admin-backend.git
synced 2025-04-24 15:27:17 +08:00
chore: update
This commit is contained in:
parent
c528be50b7
commit
4121375378
@ -387,15 +387,7 @@ const searchVague = async (req: Request, res: Response) => {
|
||||
});
|
||||
};
|
||||
|
||||
// /**
|
||||
// * @route POST /upload
|
||||
// * @produces application/x-www-form-urlencoded
|
||||
// * @consumes application/x-www-form-urlencoded
|
||||
// * @summary 文件上传
|
||||
// * @group upload - 文件上传
|
||||
// * @returns {object} 200
|
||||
// */
|
||||
|
||||
// express-swagger-generator中没有文件上传文档写法,所以请使用postman调试
|
||||
const upload = async (req: Request, res: Response) => {
|
||||
// 文件存放地址
|
||||
var des_file = "./public/images/" + req.files[0].originalname;
|
||||
|
Loading…
x
Reference in New Issue
Block a user