Refactor runtime bootstrap and ship control flows

This commit is contained in:
2026-04-03 01:12:26 -04:00
parent 0bb72bee35
commit 706e1cda8f
129 changed files with 9588 additions and 3548 deletions

View File

@@ -0,0 +1,17 @@
using FastEndpoints;
namespace SpaceGame.Api.Universe.Api;
public sealed class GetVersionHandler(AppVersionService appVersionService) : EndpointWithoutRequest<VersionInfoSnapshot>
{
public override void Configure()
{
Get("/api/version");
AllowAnonymous();
}
public override async Task HandleAsync(CancellationToken cancellationToken)
{
await SendOkAsync(appVersionService.GetSnapshot(), cancellationToken);
}
}