From d9ba4994161fe63e4137e7e977f8c59806389241 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 19 Feb 2023 09:53:27 +0100 Subject: [PATCH] Remove bodyParser.urlencoded --- apps/api/src/main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index b1c0bb509..e53ade52c 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -34,9 +34,8 @@ async function bootstrap() { }) ); - // support 10mb csv/json files for importing activities + // Support 10mb csv/json files for importing activities app.use(bodyParser.json({ limit: '10mb' })); - app.use(bodyParser.urlencoded({ limit: '10mb', extended: true })); const HOST = configService.get('HOST') || '0.0.0.0'; const PORT = configService.get('PORT') || 3333;