aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src/Program.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-12-09 05:14:52 +0100
committerivarlovlie <git@ivarlovlie.no>2022-12-09 05:14:52 +0100
commit036f11cdc0f99fd86f576f5335dae844391a0283 (patch)
treed507c039443742420e34e0205a4292730b5c908d /code/api/src/Program.cs
parent389bbdf248273ee649a0a30fd65bdc60c6afb5b7 (diff)
downloadgreatoffice-036f11cdc0f99fd86f576f5335dae844391a0283.tar.xz
greatoffice-036f11cdc0f99fd86f576f5335dae844391a0283.zip
feat: Move /Data into /Models
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();
}
}