Changes backend in preparation for frontend work

This commit is contained in:
2026-06-19 12:15:08 +02:00
parent b5357f213a
commit 23e2150140
22 changed files with 631 additions and 92 deletions
+6
View File
@@ -14,6 +14,8 @@ orchestrator.DiscoverModules();
// 2. Add Core Infrastructure
builder.Services.AddCoreInfrastructure(builder.Configuration);
builder.Services.AddCmsCors(builder.Configuration);
builder.Services.AddCmsRateLimiting(builder.Configuration);
// 3. Add Module Services
orchestrator.RegisterModuleServices(builder.Services);
@@ -29,6 +31,8 @@ var app = builder.Build();
// 5. Global Exception Handling
app.UseExceptionHandler();
app.UseRateLimiter();
// 6. Configure Pipeline
if (app.Environment.IsDevelopment())
{
@@ -38,6 +42,8 @@ if (app.Environment.IsDevelopment())
app.UseHttpsRedirection();
app.UseCors();
// 7. Use Module Middleware
orchestrator.UseModules(app);