Choropleth of the 80 Thurgau municipalities from the road vehicle stock dataset (djs-stv-17), with population from sk-stat-56 and outlines from swisstopo. Also fixes the broken ENV line in the Dockerfile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Claudio Schaad <c.schaad@pog.ch> Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
25 lines
747 B
C#
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();
|