test swagger deploy

This commit is contained in:
Gabriel Rosa
2022-08-22 11:13:22 -03:00
parent d09bf96e6f
commit 5cc2d704ea
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -28,12 +28,14 @@ async function bootstrap() {
const config = new DocumentBuilder()
.setTitle('Maestro')
.setDescription('Documentation for Maestro gateway')
.setVersion('1.0')
.setVersion('1.1')
.addBearerAuth()
.build();
const document = SwaggerModule.createDocument(app, config);
if (process.env.ENV === 'local') SwaggerModule.setup('api', app, document);
await writeFileSync('swagger.txt', JSON.stringify(JSON.stringify(document)));
await app.listen(3333);
+1 -1
View File
File diff suppressed because one or more lines are too long