update expree.json limit

This commit is contained in:
AdisakKanthawilang 2025-07-07 10:08:30 +07:00
parent 27f6f0f345
commit 0ba4b28331

View file

@ -28,8 +28,8 @@ async function main() {
origin: "*", origin: "*",
}), }),
); );
app.use(express.json()); app.use(express.json({limit: "50mb"}));
app.use(express.urlencoded({ extended: true })); app.use(express.urlencoded({ extended: true, limit: "50mb" }));
app.use(logMiddleware); app.use(logMiddleware);
app.use("/", express.static("static")); app.use("/", express.static("static"));
app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerDocument)); app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerDocument));