aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/api/src/Program.cs')
-rw-r--r--code/api/src/Program.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/code/api/src/Program.cs b/code/api/src/Program.cs
index 014b2bf..8f4348a 100644
--- a/code/api/src/Program.cs
+++ b/code/api/src/Program.cs
@@ -51,6 +51,7 @@ public static class Program
builder.Services.AddScoped<MailService>();
builder.Services.AddScoped<PasswordResetService>();
builder.Services.AddScoped<UserService>();
+ builder.Services.AddScoped<TenantService>();
builder.Services.AddSingleton<VaultService>();
builder.Services.AddHttpClient<VaultService>();
builder.Services.AddHttpClient<MailService>();
@@ -76,7 +77,6 @@ public static class Program
}));
builder.Host.UseSerilog(Log.Logger);
- builder.WebHost.ConfigureKestrel(kestrel => { kestrel.AddServerHeader = false; });
if (builder.Environment.IsDevelopment()) {
builder.Services.AddCors();
@@ -94,7 +94,7 @@ public static class Program
.AddSupportedUICultures(supportedCultures);
options.ApplyCurrentCultureToResponseHeaders = true;
});
-
+
builder.Services.Configure<RequestLocalizationOptions>(options => {
options.AddInitialRequestCultureProvider(new CustomRequestCultureProvider(async context =>
// Get culture from specific cookie
@@ -241,7 +241,7 @@ public static class Program
return 1;
}
finally {
- Log.Information("Shut down complete, flusing logs...");
+ Log.Information("Shut down complete, flushing logs...");
Log.CloseAndFlush();
}
}