initial commit
This commit is contained in:
commit
2d966b8198
28 changed files with 2901 additions and 0 deletions
15
Program.cs
Normal file
15
Program.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue