Skip to content

Commit 1e7febb

Browse files
committed
Add all modules to swagger
1 parent d815017 commit 1e7febb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/main.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import { AppModule } from './app.module';
88
import { PaymentProvidersModule } from './api/payment-providers/payment-providers.module';
99
import { WebhooksModule } from './api/webhooks/webhooks.module';
1010
import { ENV_CONFIG } from './config';
11+
import { AdminModule } from './api/admin/admin.module';
12+
import { UserModule } from './api/user/user.module';
13+
import { WalletModule } from './api/wallet/wallet.module';
14+
import { WinningsModule } from './api/winnings/winnings.module';
1115

1216
async function bootstrap() {
1317
const app = await NestFactory.create<NestExpressApplication>(AppModule, {
@@ -52,7 +56,15 @@ async function bootstrap() {
5256
})
5357
.build();
5458
const document = SwaggerModule.createDocument(app, config, {
55-
include: [ApiModule, PaymentProvidersModule, WebhooksModule],
59+
include: [
60+
ApiModule,
61+
AdminModule,
62+
UserModule,
63+
WinningsModule,
64+
WalletModule,
65+
PaymentProvidersModule,
66+
WebhooksModule,
67+
],
5668
});
5769
SwaggerModule.setup('/v5/finance/api-docs', app, document);
5870

0 commit comments

Comments
 (0)