aboutsummaryrefslogtreecommitdiff
path: root/src/Enmarcha.Backend/Program.cs
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2026-04-12 18:02:56 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2026-04-12 18:02:56 +0200
commitcd0551534d8aaf3d3d5cc1727dfcc01d0637c6b2 (patch)
tree6c06381eb35f34bef66c9a67115f9760e5f78674 /src/Enmarcha.Backend/Program.cs
parent7178807ef9724890b39dbf09e1de5b0a9c799a85 (diff)
Run formatter, split code in backend
Diffstat (limited to 'src/Enmarcha.Backend/Program.cs')
-rw-r--r--src/Enmarcha.Backend/Program.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Enmarcha.Backend/Program.cs b/src/Enmarcha.Backend/Program.cs
index 9bc0eb3..7f8574b 100644
--- a/src/Enmarcha.Backend/Program.cs
+++ b/src/Enmarcha.Backend/Program.cs
@@ -13,6 +13,8 @@ using Microsoft.EntityFrameworkCore;
using OpenTelemetry.Logs;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;
+using Enmarcha.Backend.Services.Processors.Normalisation;
+using Enmarcha.Backend.Services.Processors.RealTime;
var builder = WebApplication.CreateBuilder(args);
@@ -153,7 +155,8 @@ builder.Services.AddAuthentication(options =>
options.DefaultScheme = "Backoffice";
options.DefaultChallengeScheme = "Auth0";
})
- .AddCookie("Backoffice", options => {
+ .AddCookie("Backoffice", options =>
+ {
options.LoginPath = "/backoffice/auth/login";
options.Cookie.SameSite = SameSiteMode.None;
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;
@@ -216,7 +219,10 @@ builder.Services.AddScoped<IArrivalsProcessor, RenfeRealTimeProcessor>();
builder.Services.AddScoped<IArrivalsProcessor, FilterAndSortProcessor>();
builder.Services.AddScoped<IArrivalsProcessor, NextStopsProcessor>();
builder.Services.AddScoped<IArrivalsProcessor, ShapeProcessor>();
-builder.Services.AddScoped<IArrivalsProcessor, FeedConfigProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, VitrasaNormalizationProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, XuntaNormalizationProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, TranviasNormalizationProcessor>();
+builder.Services.AddScoped<IArrivalsProcessor, ColourProcessor>();
builder.Services.AddScoped<ArrivalsPipeline>();
// builder.Services.AddKeyedScoped<IGeocodingService, NominatimGeocodingService>("Nominatim");