Commit c0b6a1c5 authored by ncastejon's avatar ncastejon
Browse files

Remove the swagger-stats module

parent 1808246f
......@@ -31,7 +31,7 @@ const ormConfig = {
synchronize: false,
migrations: [`${root}/migrations/*.ts`],
cli: { migrationsDir: `${root}/migrations` },
logging: true,
logging: ['error'],
};
module.exports = ormConfig;
This diff is collapsed.
......@@ -41,7 +41,6 @@
"reflect-metadata": "^0.1.12",
"rxjs": "^6.2.2",
"serve-favicon": "^2.5.0",
"swagger-stats": "^0.95.7",
"typeorm": "^0.2.7",
"typescript": "^3.0.1"
},
......@@ -80,4 +79,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';
......@@ -21,9 +20,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));
// Set endpoint serving the swagger documentation
SwaggerModule.setup('api-doc', app, document);
......
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