Skip to content

Commit

Permalink
feat(health): add httpClient as option
Browse files Browse the repository at this point in the history
In order to re-use your `HttpService` - which may have been
pre-configured using `HttpModule.register` - you can now pass
that `HttpService` using the `httpClient` option

resolves #1151
  • Loading branch information
BrunnerLivio committed Apr 11, 2021
1 parent abde41f commit 25a428c
Show file tree
Hide file tree
Showing 3 changed files with 355 additions and 328 deletions.
5 changes: 4 additions & 1 deletion e2e/helper/bootstrap-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ class ApplicationModule {
useMongoose: boolean,
useSequelize: boolean,
): DynamicModule {
const imports = [TerminusModule.forRootAsync(options)];
const imports = [
TerminusModule.forRootAsync(options),
...(options.imports || []),
];

if (useDb) {
imports.push(DbModule);
Expand Down
Loading

0 comments on commit 25a428c

Please sign in to comment.