From 71e4356ba090ee54e85877bd3a930c91f5d65939 Mon Sep 17 00:00:00 2001 From: lemuel Date: Sun, 7 Aug 2022 21:22:40 -0500 Subject: [PATCH] sin swagger --- src/main.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main.ts b/src/main.ts index 2e4e935..486ee18 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,15 +6,15 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); - const config = new DocumentBuilder() - .setTitle('pcpuma_unam_api') - .setDescription('Api de Pc puma') - .setVersion('1.0') - .addBearerAuth({ bearerFormat: 'JWT', type: 'http' }, 'jwt') - .build(); - const document = SwaggerModule.createDocument(app, config); + // const config = new DocumentBuilder() + // .setTitle('pcpuma_unam_api') + // .setDescription('Api de Pc puma') + // .setVersion('1.0') + // .addBearerAuth({ bearerFormat: 'JWT', type: 'http' }, 'jwt') + // .build(); + // const document = SwaggerModule.createDocument(app, config); - SwaggerModule.setup('/api', app, document); + // SwaggerModule.setup('/api', app, document); app.useGlobalPipes(new ValidationPipe({ whitelist: true })); app.enableCors(); await app.listen(process.env.API_PORT);