15 lines
381 B
Python
15 lines
381 B
Python
|
|
from fastapi import APIRouter
|
|||
|
|
|
|||
|
|
from app.core.logging import get_logger
|
|||
|
|
from app.db.platform_store import get_platform_store
|
|||
|
|
|
|||
|
|
router = APIRouter()
|
|||
|
|
logger = get_logger(__name__)
|
|||
|
|
|
|||
|
|
|
|||
|
|
@router.get("/health")
|
|||
|
|
async def health_check() -> dict[str, object]:
|
|||
|
|
logger.info("health check requested")
|
|||
|
|
return {"code": 0, "message": "ok", "data": get_platform_store().health_metrics()}
|
|||
|
|
|