|
|
|
@ -6,6 +6,7 @@ import { options } from './config/config.doc'
|
|
|
|
import { SwaggerModule } from '@nestjs/swagger';
|
|
|
|
import { SwaggerModule } from '@nestjs/swagger';
|
|
|
|
import { LoggingInterceptor } from './common/interceptor/logging.interceptor';
|
|
|
|
import { LoggingInterceptor } from './common/interceptor/logging.interceptor';
|
|
|
|
import * as fs from 'fs';
|
|
|
|
import * as fs from 'fs';
|
|
|
|
|
|
|
|
import { urlencoded, json } from 'express';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
@ -38,6 +39,8 @@ async function bootstrap() {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
credentials: true,
|
|
|
|
credentials: true,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
app.use(json({ limit: '50mb' }));
|
|
|
|
|
|
|
|
app.use(urlencoded({ extended: true, limit: '50mb' }));
|
|
|
|
// app.useGlobalFilters(new HttpExceptionFilter());
|
|
|
|
// app.useGlobalFilters(new HttpExceptionFilter());
|
|
|
|
app.useGlobalInterceptors(new LoggingInterceptor());
|
|
|
|
app.useGlobalInterceptors(new LoggingInterceptor());
|
|
|
|
if (process.env.DOC === 'true') {
|
|
|
|
if (process.env.DOC === 'true') {
|
|
|
|
|