base con autenticacion, registro, modulo encuestas
This commit is contained in:
11
apps/api/src/swagger.ts
Normal file
11
apps/api/src/swagger.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { NestExpressApplication } from '@nestjs/platform-express';
|
||||
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
|
||||
|
||||
export const swagger = async (app: NestExpressApplication) => {
|
||||
const swaggerConfig = new DocumentBuilder()
|
||||
.setTitle('Turbo repo')
|
||||
.addBearerAuth()
|
||||
.build();
|
||||
const document = SwaggerModule.createDocument(app, swaggerConfig);
|
||||
SwaggerModule.setup('api-docs', app, document);
|
||||
};
|
||||
Reference in New Issue
Block a user