"""
Health check routes.

Simple endpoints for API monitoring and status checks.
"""

from fastapi import APIRouter

router = APIRouter(prefix="/api/v1", tags=["health"])


@router.get("/health")
async def health_check() -> dict:
    """
    Health check endpoint.

    Returns API status and version.
    """
    return {
        "status": "healthy",
        "service": "czbg-api",
        "version": "1.0.0",
    }


@router.get("/")
async def root() -> dict:
    """
    Root endpoint.

    Returns API information.
    """
    return {
        "service": "CZBG API",
        "version": "1.0.0",
        "docs": "/docs",
        "health": "/api/v1/health",
    }
