Loading backend/src/main.ts +10 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,16 @@ async function bootstrap() { const config = new DocumentBuilder() .setTitle('Pueblos Magicos API') .setVersion('1.0') .addBearerAuth( { type: 'http', scheme: 'bearer', bearerFormat: 'JWT', name: 'Authorization', in: 'header', }, 'JWT', ) .build(); const document = SwaggerModule.createDocument(app, config); SwaggerModule.setup('api', app, document); Loading Loading
backend/src/main.ts +10 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,16 @@ async function bootstrap() { const config = new DocumentBuilder() .setTitle('Pueblos Magicos API') .setVersion('1.0') .addBearerAuth( { type: 'http', scheme: 'bearer', bearerFormat: 'JWT', name: 'Authorization', in: 'header', }, 'JWT', ) .build(); const document = SwaggerModule.createDocument(app, config); SwaggerModule.setup('api', app, document); Loading