Commit 35dddf6a authored by ncastejon's avatar ncastejon
Browse files

Remove the swagger-stats module

parent 957be177
Pipeline #2436 passed with stages
in 4 minutes and 40 seconds
This diff is collapsed.
......@@ -2,7 +2,6 @@ import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import { ValidationPipe } from '@nestjs/common';
import * as swStats from 'swagger-stats';
import * as favicon from 'serve-favicon';
import * as path from 'path';
import { AppLogger } from './app-logger';
......@@ -25,9 +24,6 @@ async function bootstrap() {
.build();
const document = SwaggerModule.createDocument(app, options);
// Enable stats middleware based on the generated swagger document
app.use(swStats.getMiddleware(document));
SwaggerModule.setup('api-doc', app, document);
app.useGlobalPipes(new ValidationPipe());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment