"""
Router principal de API v1
Agrega todos los módulos de la aplicación (Reload)
"""

from fastapi import APIRouter

# Importar routers de módulos
from .modules.core.router import router as core_router
from .modules.a76.router import router as a76_router
from .modules.a24.router import router as a24_router
from .modules.public.router import router as public_router
from .modules.sitar.router import router as sitar_router


# Router principal
router = APIRouter()

# Registrar módulos
router.include_router(core_router)
router.include_router(a76_router)
router.include_router(a24_router)
router.include_router(public_router)
router.include_router(sitar_router, prefix="/sitar")


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


