62 lines
1.1 KiB
Python
62 lines
1.1 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
|
|
|
|
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"]
|
|
) |