"""Health endpoint — no DB or Redis touch; liveness, plus the build's identity. The identity rides here rather than on a route of its own because it answers at the same cost: two module constants, no I/O, nothing that can be slow or fail. It is also already fetched app-wide — TopNav calls `refreshHealth` on mount — so a separate endpoint would mean a second request for two strings. Both fields are OMITTED when unset rather than sent empty. See build_info. """ from ..build_info import FC_CHANNEL, FC_VERSION async def get_health(): body = {"status": "ok"} if FC_VERSION: body["version"] = FC_VERSION if FC_CHANNEL: body["channel"] = FC_CHANNEL return body, 200