Gateway readiness check

This commit is contained in:
2025-12-24 22:09:03 +08:00
parent bca6a2ffde
commit 213608d4f0
6 changed files with 237 additions and 28 deletions

View File

@@ -0,0 +1,14 @@
using Microsoft.AspNetCore.Mvc;
namespace DysonNetwork.Gateway.Health;
[ApiController]
[Route("/health")]
public class GatewayStatusController(GatewayReadinessStore readinessStore) : ControllerBase
{
[HttpGet]
public ActionResult<GatewayReadinessState> GetHealthStatus()
{
return Ok(readinessStore.Current);
}
}