Skip to content

Commit

Permalink
changepath
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Nov 27, 2024
1 parent f076e14 commit e0ee0dc
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@ async function bootstrap() {
logger: log_levels,
});

app.use(
expressMonitor({
chartVisibility: {
cpu: true,
mem: true,
load: true,
eventLoop: true,
heap: true,
responseTime: true,
rps: true,
statusCodes: true,
},
}),
);
app.useGlobalPipes(
new ValidationPipe({
validateCustomDecorators: true,
Expand All @@ -44,8 +30,22 @@ async function bootstrap() {
app.use(json({ limit: '20mb' }));
app.use(urlencoded({ extended: true, limit: '20mb' }));
app.enableCors();
app.use(
expressMonitor({
chartVisibility: {
cpu: true,
mem: true,
load: true,
eventLoop: true,
heap: true,
responseTime: true,
rps: true,
statusCodes: true,
},
}),
);
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('api', app, document, {
SwaggerModule.setup('', app, document, {
swaggerOptions: {
filter: true,
},
Expand Down

0 comments on commit e0ee0dc

Please sign in to comment.