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.
......@@ -33,7 +33,6 @@
"reflect-metadata": "^0.1.12",
"rxjs": "^6.2.2",
"serve-favicon": "^2.5.0",
"swagger-stats": "^0.95.7",
"typescript": "^3.0.1",
"useragent": "^2.3.0"
},
......@@ -72,4 +71,4 @@
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
\ No newline at end of file
}
......@@ -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());
......
Markdown is supported
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