mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-17 11:59:09 +00:00
FIX: Docs
This commit is contained in:
+1
-6
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user