Добавил выбор направления и другие мелкие фиксы

This commit is contained in:
2025-02-06 07:14:44 +03:00
parent 270de696f7
commit 2e5fb3972e
19 changed files with 205 additions and 88 deletions

View File

@@ -4,8 +4,10 @@ using Gotenberg.Sharp.API.Client.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.AspNetCore.Mvc.Authorization;
using Microsoft.EntityFrameworkCore;
using Microsoft.Identity.Web;
using Microsoft.Identity.Web.UI;
using Otchinslator;
using Otchinslator.Components;
using Otchinslator.Services;
@@ -26,6 +28,9 @@ builder.Services.Configure<ForwardedHeadersOptions>(options =>
options.KnownProxies.Clear();
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
});
builder.Services.AddDbContext<DatabaseContext>();
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();