Skip to content

chore: added support for forFeatureAsync #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

dev-ashishk
Copy link
Owner

Changelog

Added the support for forFeatureAsync

@Module({
  imports: [
    HttpModule.forFeatureAsync({
      logger: customLogger, // Custom logger instance
      serviceName: 'MyService', // Service name for logging
      inject: [ConfigService],
      useFactory: (configService: ConfigService) => {
        return {
          baseURL: configService.get('API_BASE_URL'),
          enableLogging: configService.get('ENABLE_LOGGING'),
        }
      }
    }),
  ],
})

@dev-ashishk dev-ashishk linked an issue Nov 26, 2024 that may be closed by this pull request
@dev-ashishk dev-ashishk merged commit e211135 into main Nov 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How can I pass a config service?
1 participant