diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-11-29 07:35:10 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-11-29 07:35:10 +0100 |
| commit | 735d4c2bd46f809d43245e8eb8069c16d1bb3327 (patch) | |
| tree | 86a2a2a13812292cb9f4575eb80069f34c78fc85 /code/api | |
| parent | 55ac6f03a23eca5f5ec9ff57ff4e16e9575770c6 (diff) | |
| download | greatoffice-735d4c2bd46f809d43245e8eb8069c16d1bb3327.tar.xz greatoffice-735d4c2bd46f809d43245e8eb8069c16d1bb3327.zip | |
feat: Add http clients to MailService and VaultService
No idea why vault service didn't complain about not having a http client before.
Diffstat (limited to 'code/api')
| -rw-r--r-- | code/api/src/Program.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/code/api/src/Program.cs b/code/api/src/Program.cs index 1c511e7..66cccaa 100644 --- a/code/api/src/Program.cs +++ b/code/api/src/Program.cs @@ -52,6 +52,8 @@ public static class Program builder.Services.AddScoped<PasswordResetService>(); builder.Services.AddScoped<UserService>(); builder.Services.AddSingleton<VaultService>(); + builder.Services.AddHttpClient<VaultService>(); + builder.Services.AddHttpClient<MailService>(); var vaultService = builder.Services.BuildServiceProvider().GetRequiredService<VaultService>(); var configuration = vaultService.GetCurrentAppConfiguration(); var logger = new LoggerConfiguration() |
