Browse Source

Remove bodyParser.urlencoded

pull/1726/head
Thomas 3 years ago
parent
commit
d9ba499416
  1. 3
      apps/api/src/main.ts

3
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.json({ limit: '10mb' }));
app.use(bodyParser.urlencoded({ limit: '10mb', extended: true }));
const HOST = configService.get<string>('HOST') || '0.0.0.0'; const HOST = configService.get<string>('HOST') || '0.0.0.0';
const PORT = configService.get<number>('PORT') || 3333; const PORT = configService.get<number>('PORT') || 3333;

Loading…
Cancel
Save