cs2-web/Program.cs
Kamal Tufekcic 2d966b8198 initial commit
2026-07-05 12:14:39 +03:00

15 lines
478 B
C#

using CsWeb.Services;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages();
builder.Services.AddSingleton<Fleet>();
var app = builder.Build();
app.UseStaticFiles();
app.MapRazorPages();
// Changelog is deliberately not a page: the Forgejo releases feed IS the changelog (one source of truth).
app.MapGet("/changelog", (IConfiguration cfg) =>
Results.Redirect(cfg["Outnumbered:ReleasesUrl"] ?? "/", permanent: false));
await app.RunAsync();