sin swagger
This commit is contained in:
+8
-8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user