This commit is contained in:
ilhamtahir committed 2024-11-19 22:48:10 +08:00
1 parent 4161fddb31
commit 398a09ad83
2 files changed
+2

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ async function bootstrap() {
.addBearerAuth()
.build();
const document = SwaggerModule.createDocument(app, config);
document.servers = [{ url: process.env.SERVER_PREFIX }];
SwaggerModule.setup('docs', app, document, {
jsonDocumentUrl: 'docs/json',
});