Files
plantillas-proyectos/backend/api/v1/modules/a76/router.py
acazares 6225122832 feat: Implement client and provider management dashboard
- Added data table component for displaying clients and providers with infinite scroll functionality.
- Created dropdown actions for each client/provider including copy ID, copy RFC, view details, edit, toggle status, and delete.
- Implemented dialogs for creating, editing, viewing details, and deleting clients/providers.
- Integrated API calls for fetching, creating, editing, deleting, and toggling status of clients/providers.
- Enhanced error handling and loading states for better user experience.
- Updated server-side logic to handle pagination and company selection for client/provider data retrieval.
2025-11-12 16:08:42 -06:00

65 lines
2.9 KiB
Python

"""
Router principal de API v1
Agrega todos los módulos de la aplicación
"""
from fastapi import APIRouter
from .customs_brokers.routes import router as customs_broker_router
# Importar routers de módulos
from .auth import router as auth_router
from .classes import router as classes_router
from .clients_and_providers import router as client_and_provider_router
from .company import router as company_router
from .country_rule_oct.routes import router as country_rule_oct_router
from .drivers.routes import router as drivers_router
from .exchange_rate.routes import router as exchange_rate_router
from .fraction_rule_octave.routes import router as fraction_rule_octave_router
from .licenses import router as licenses_router
from .package.routes import router as package_router
from .parts import router as parts_router
from .pedmientos.router import router as pedimentos_router
from .permission_rule_oct.routes import router as permission_rule_oct_router
from .seal.routes import router as seal_router
from .tenants import router as tenants_router
from .trailers.routes import router as trailers_router
from .transporters.routes import router as transporters_router
from .user_tenant.routes import router as user_tenant_router
from .vehicles.routes import router as vehicles_router
# Router principal
router = APIRouter()
# Registrar módulos
router.include_router(auth_router)
router.include_router(tenants_router, prefix="/a76", tags=["a76 / tenants"])
router.include_router(user_tenant_router, prefix="/a76", tags=["a76 / user-tenants"])
router.include_router(licenses_router, prefix="/a76", tags=["a76 / licenses"])
router.include_router(pedimentos_router, prefix="/a76")
router.include_router(
client_and_provider_router, prefix="/a76", tags=["a76 / clients and providers"]
)
router.include_router(company_router, prefix="/a76", tags=["a76 / company"])
router.include_router(classes_router, prefix="/a76", tags=["a76 / classes"])
router.include_router(parts_router, prefix="/a76", tags=["a76 / parts"])
router.include_router(
permission_rule_oct_router, prefix="/a76", tags=["a76 / PermissionRuleOct"]
)
router.include_router(package_router, prefix="/a76", tags=["a76 / Package"])
router.include_router(seal_router, prefix="/a76", tags=["a76 / Seal"])
router.include_router(
fraction_rule_octave_router, prefix="/a76", tags=["a76 / FractionRuleOctave"]
)
router.include_router(
country_rule_oct_router, prefix="/a76", tags=["a76 / CountryRuleOct"]
)
router.include_router(exchange_rate_router, prefix="/a76", tags=["a76 / ExchangeRate"])
router.include_router(trailers_router, prefix="/a76", tags=["a76 / Trailers"])
router.include_router(
customs_broker_router, prefix="/a76", tags=["a76 / CustomsBroker"]
)
router.include_router(drivers_router, prefix="/a76", tags=["a76 / Drivers"])
router.include_router(transporters_router, prefix="/a76", tags=["a76 / Transporters"])
router.include_router(vehicles_router, prefix="/a76", tags=["a76 / Vehicles"])