FIX: Docs

This commit is contained in:
Victor Radael
2022-08-19 11:07:29 -03:00
parent 6f0f93d80d
commit 8bd5bf1526
4 changed files with 15 additions and 8 deletions
+1 -6
View File
@@ -30,16 +30,11 @@ async function bootstrap() {
.setDescription('Documentation for Maestro gateway')
.setVersion('1.0')
.addBearerAuth()
.addServer(
process.env.ENV === 'local'
? 'http://localhost:3333'
: 'https://maestro.dev.dadosfera.ai',
)
.build();
const document = SwaggerModule.createDocument(app, config);
await writeFileSync('swagger.json', JSON.stringify(document));
await writeFileSync('swagger.txt', JSON.stringify(JSON.stringify(document)));
await app.listen(3333);
}