Empty but complete solution so every later phase starts from a working toolchain: analyzers as errors, locked restore, format check, policy tests that keep packages within ADR 0004 and keep live trading switched off, a /health endpoint served from Docker, and a Gitea workflow with only run steps. API facts of SPEC section 4 re-checked in docs/API-NOTES.md; ADR 0006 records what changed (MSTest base packages, Ubuntu images, OKX WebSocket on 443, Alpaca margin-only accounts). refs #1 refs #2 refs #3 refs #4 refs #5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
589 B
C#
19 lines
589 B
C#
namespace Anubis.Server;
|
|
|
|
/// <summary>Builds the web application. Kept apart from Program so tests can host it.</summary>
|
|
internal static class ServerApp
|
|
{
|
|
public static WebApplication Build(string[] args)
|
|
{
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
var app = builder.Build();
|
|
|
|
app.MapGet("/health", () => Results.Ok(new HealthResponse("ok", AnubisInfo.Name, AnubisInfo.Version)));
|
|
|
|
return app;
|
|
}
|
|
}
|
|
|
|
/// <summary>Answer of <c>GET /health</c>.</summary>
|
|
internal sealed record HealthResponse(string Status, string Name, string Version);
|