Files

20 lines
482 B
Python
Raw Permalink Normal View History

"""Health check endpoint — extended with DB, Redis, storage, worker checks."""
from __future__ import annotations
from fastapi import APIRouter
from app.core.monitoring import get_health_status
router = APIRouter(tags=["health"])
@router.get("/api/v1/health")
async def health():
"""Health check — no auth required.
Returns status (healthy/degraded) and individual checks for
database, redis, storage, and worker.
"""
return await get_health_status()