Coverage for src/lumen/api/health.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.16.0, created at 2026-08-31 18:46 +0000

1""" 

2This endpoint exposes the basic health check route for the FHIR server. 

3It is primarily used by container orchestrators to verify if the server is running. 

4""" 

5 

6from fastapi import APIRouter 

7from fastapi.responses import JSONResponse 

8 

9router = APIRouter() 

10 

11 

12@router.get("/health") 

13async def health() -> JSONResponse: 

14 return JSONResponse({"status": "ok"})