merge: testing → main (reconcile 2-week divergence)
This commit is contained in:
11
decnet/web/router/swarm/api_get_swarm_health.py
Normal file
11
decnet/web/router/swarm/api_get_swarm_health.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""GET /swarm/health — controller liveness (no I/O)."""
|
||||
from __future__ import annotations
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/health", tags=["Swarm Health"])
|
||||
async def api_get_swarm_health() -> dict[str, str]:
|
||||
return {"status": "ok", "role": "swarm-controller"}
|
||||
Reference in New Issue
Block a user