Skip to content

Commit

Permalink
feat: json payload 20mb urlencode 20mb
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed May 9, 2024
1 parent 92c11b6 commit cd99615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ async function bootstrap() {
.setVersion('v0.1')
.build();
app.setGlobalPrefix('api/v1');
app.use(json({ limit: '10mb' }));
app.use(urlencoded({ extended: true, limit: '10mb' }));
app.use(json({ limit: '20mb' }));
app.use(urlencoded({ extended: true, limit: '20mb' }));
app.enableCors();
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('api', app, document, {
Expand Down

0 comments on commit cd99615

Please sign in to comment.