Files
LawBot/api/routers/health.py
T

16 lines
339 B
Python
Raw Normal View History

2026-05-25 01:12:43 +03:00
import logging
from fastapi import APIRouter
from api.schemas import HealthResponse
router = APIRouter(tags=["health"])
logger = logging.getLogger(__name__)
@router.get("/health", response_model=HealthResponse)
async def healthcheck() -> HealthResponse:
logger.debug("Healthcheck request")
return HealthResponse(status="ok")