Skip to content

Commit

Permalink
fix: show swagger docs even if external api is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyl-ivanchuk committed Oct 9, 2023
1 parent c3b688f commit feffea4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const { disableExternalAPI } = config();
useFactory: (configService: ConfigService) => configService.get<TypeOrmModuleOptions>("typeORM"),
inject: [ConfigService],
}),
...(disableExternalAPI
? []
: [ApiModule, ApiBlockModule, ApiAccountModule, ApiTransactionModule, ApiContractModule, ApiLogModule]),
ApiModule,
ApiContractModule,
...(disableExternalAPI ? [] : [ApiBlockModule, ApiAccountModule, ApiTransactionModule, ApiLogModule]),
TokenModule,
AddressModule,
BalanceModule,
Expand Down

0 comments on commit feffea4

Please sign in to comment.