|
@@ -3,6 +3,7 @@ import { Logger } from '@nestjs/common';
|
|
|
|
|
|
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
|
|
|
import { AppModule } from './app.module';
|
|
|
+import { json } from 'body-parser';
|
|
|
|
|
|
async function bootstrap() {
|
|
|
const port = 3000;
|
|
@@ -17,6 +18,7 @@ async function bootstrap() {
|
|
|
.build();
|
|
|
const document = SwaggerModule.createDocument(app, config);
|
|
|
SwaggerModule.setup('api', app, document);
|
|
|
+ app.use(json({ limit: '50mb' }));
|
|
|
|
|
|
await app.listen(port);
|
|
|
Logger.log(`Milvus insight API server is running on port ${port}`);
|