- Nuevo módulo de reportes: backend/app/api/v1/endpoints/reports.py - Schemas de reportes: backend/app/api/schemas/reports.py - Frontend: frontend-internal/src/routes/reports/ - Mejoras al módulo de auditoría (audit.py, audit_helpers.py) - Modelo de auditoría actualizado - Sidebar actualizado con enlace a reportes
83 lines
1.4 KiB
Python
83 lines
1.4 KiB
Python
"""
|
|
API v1 Router - ServiceManagerWeb
|
|
|
|
Router principal para la API v1
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1.endpoints import auth, health, tenants, users, systems, categories, tickets, client_profile, audit, sla, reports
|
|
|
|
api_router = APIRouter()
|
|
|
|
# Health check routes
|
|
api_router.include_router(
|
|
health.router,
|
|
tags=["health"]
|
|
)
|
|
|
|
# Authentication routes
|
|
api_router.include_router(
|
|
auth.router,
|
|
prefix="/auth",
|
|
tags=["authentication"]
|
|
)
|
|
|
|
api_router.include_router(
|
|
tenants.router,
|
|
prefix="/tenants",
|
|
tags=["tenants"]
|
|
)
|
|
|
|
api_router.include_router(
|
|
users.router,
|
|
prefix="/users",
|
|
tags=["users"]
|
|
)
|
|
|
|
api_router.include_router(
|
|
systems.router,
|
|
prefix="/systems",
|
|
tags=["systems"]
|
|
)
|
|
|
|
api_router.include_router(
|
|
categories.router,
|
|
prefix="/categories",
|
|
tags=["categories"]
|
|
)
|
|
|
|
# Tickets routes
|
|
api_router.include_router(
|
|
tickets.router,
|
|
prefix="/tickets",
|
|
tags=["tickets"]
|
|
)
|
|
|
|
# Client Profile routes
|
|
api_router.include_router(
|
|
client_profile.router,
|
|
prefix="/client-profile",
|
|
tags=["client-profile"]
|
|
)
|
|
|
|
# Audit routes
|
|
api_router.include_router(
|
|
audit.router,
|
|
prefix="/audit",
|
|
tags=["audit"]
|
|
)
|
|
|
|
# SLA routes
|
|
api_router.include_router(
|
|
sla.router,
|
|
prefix="/sla",
|
|
tags=["sla"]
|
|
)
|
|
|
|
# Reports routes
|
|
api_router.include_router(
|
|
reports.router,
|
|
prefix="/reports",
|
|
tags=["reports"]
|
|
) |