From 2a35e036051e05304874cf7785e21d1b16780671 Mon Sep 17 00:00:00 2001 From: Harm Meijer Date: Mon, 15 Dec 2025 10:47:40 +0100 Subject: [PATCH] chore(template): post size of event --- application-templates/javascript/event/src/app.js | 4 ++-- application-templates/typescript/event/src/app.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application-templates/javascript/event/src/app.js b/application-templates/javascript/event/src/app.js index 7574371..8068cab 100644 --- a/application-templates/javascript/event/src/app.js +++ b/application-templates/javascript/event/src/app.js @@ -18,8 +18,8 @@ const app = express(); app.disable('x-powered-by'); // Define configurations -app.use(bodyParser.json()); -app.use(bodyParser.urlencoded({ extended: true })); +app.use(bodyParser.json({ limit: '5mb' })); +app.use(bodyParser.urlencoded({ extended: true, limit: '5mb' })); // Define routes app.use('/event', EventRoutes); diff --git a/application-templates/typescript/event/src/app.ts b/application-templates/typescript/event/src/app.ts index 365140f..95cbb48 100644 --- a/application-templates/typescript/event/src/app.ts +++ b/application-templates/typescript/event/src/app.ts @@ -19,8 +19,8 @@ const app: Express = express(); app.disable('x-powered-by'); // Define configurations -app.use(bodyParser.json()); -app.use(bodyParser.urlencoded({ extended: true })); +app.use(bodyParser.json({ limit: '5mb' })); +app.use(bodyParser.urlencoded({ extended: true, limit: '5mb' })); // Define routes app.use('/event', EventRoutes);