From 412137537822b944f85320aa1d31d6217467fb14 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sun, 13 Nov 2022 19:40:33 +0800 Subject: [PATCH] chore: update --- src/router/http.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/router/http.ts b/src/router/http.ts index 822fd78..d617fd6 100644 --- a/src/router/http.ts +++ b/src/router/http.ts @@ -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;