""" Core router for health and root endpoints. """ import logging from fastapi import APIRouter from src.core.config import config logger = logging.getLogger(__name__) router = APIRouter(tags=["core"]) @router.get("/health") async def health_check() -> dict[str, str]: """ Health check endpoint. Returns: Health status """ return {"status": "healthy", "version": config.APP_VERSION} @router.get("/") async def root() -> dict[str, str]: """ Root endpoint. Returns: API information """ return { "name": config.APP_NAME, "version": config.APP_VERSION, "docs": "/docs", }