From b009d3e3fdeced31ffd6db1578e9b3824528ef47 Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 8 Jun 2022 23:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E8=84=9A=E6=9C=AC=E5=86=85=E5=AE=B9=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/api/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/api/script.ts b/back/api/script.ts index ce22aaa0..cea7b129 100644 --- a/back/api/script.ts +++ b/back/api/script.ts @@ -133,7 +133,7 @@ export default (app: Router) => { body: Joi.object({ filename: Joi.string().required(), path: Joi.string().optional().allow(''), - content: Joi.string().required(), + content: Joi.string().required().allow(''), }), }), async (req: Request, res: Response, next: NextFunction) => {