"""
Router principal de API v1
"""

from fastapi import APIRouter

from .modules.core.router import router as core_router
from .modules.crm.router import router as crm_router
from .modules.ops.router import router as ops_router
from .modules.fin.router import router as fin_router
from .modules.example.routes import router as example_router


router = APIRouter()

router.include_router(core_router)
router.include_router(crm_router, prefix="/crm", tags=["crm"])
router.include_router(ops_router, prefix="/ops", tags=["ops"])
router.include_router(fin_router, prefix="/fin", tags=["fin"])
router.include_router(example_router, prefix="/example", tags=["example"])


@router.get("/status")
def status():
    """Health check de la API"""
    return {"status": "ok", "version": "1.0.0", "api": "v1"}
