15 lines
478 B
C#
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();
|