OpenDataVisualizer/Schaad.OpenData.Server/Program.cs
Claudio Schaad 81c3661687 Add Thurgau vehicle stock map
Choropleth of the 80 Thurgau municipalities from the road vehicle stock
dataset (djs-stv-17): vehicles per 1000 inhabitants by vehicle group or
share of a car brand among passenger cars, with year controls and a
municipality panel. Population comes from sk-stat-56, outlines from
swisstopo swissBOUNDARIES3D.

Also fixes the broken ENV line in the Dockerfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 22:41:47 +01:00

25 lines
747 B
C#

using Schaad.OpenData.Server.Traffic;
using Schaad.OpenData.Server.Vehicles;
using Schaad.OpenData.Server.Watercraft;
using Schaad.OpenData.Traffic;
using Schaad.OpenData.Vehicles;
using Schaad.OpenData.Watercraft;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddTraffic(builder.Configuration);
builder.Services.AddWatercraft(builder.Configuration);
builder.Services.AddVehicles(builder.Configuration);
builder.Services.AddResponseCompression(options => options.EnableForHttps = true);
var app = builder.Build();
app.UseResponseCompression();
app.UseDefaultFiles();
app.UseStaticFiles();
app.MapTrafficEndpoints();
app.MapWatercraftEndpoints();
app.MapVehicleEndpoints();
app.MapFallbackToFile("index.html");
app.Run();