From 568e5a635df6373b5fc46407edc54b7479516af6 Mon Sep 17 00:00:00 2001 From: harid Date: Mon, 6 Jul 2026 13:26:04 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=82=E0=B8=A2=E0=B8=B2=E0=B8=A2=20limit=20?= =?UTF-8?q?request=20body=20#2592?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index 32788fb..fa6956b 100644 --- a/src/app.ts +++ b/src/app.ts @@ -24,8 +24,8 @@ async function main() { origin: "*", }), ); - app.use(express.json()); - app.use(express.urlencoded({ extended: true })); + app.use(express.json({ limit: "50mb" })); + app.use(express.urlencoded({ extended: true, limit: "50mb" })); app.use(logMiddleware); app.use("/", express.static("static")); app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerDocument));