Skip to content

Commit

Permalink
[core] Add WHATSAPP_SWAGGER_ENABLED environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
allburov committed Nov 25, 2023
1 parent 4a80753 commit fdbaa43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ export class WhatsappConfigService {
return this.configService.get('WHATSAPP_API_KEY', '');
}

getSwaggerEnabled(): boolean {
const value = this.configService.get('WHATSAPP_SWAGGER_ENABLED', 'true');
return parseBool(value);
}

getSwaggerUsernamePassword(): [string, string] | undefined {
const user = this.configService.get('WHATSAPP_SWAGGER_USERNAME', undefined);
const password = this.configService.get(
Expand Down

0 comments on commit fdbaa43

Please sign in to comment.