Refactor backend and frontend code for improved structure and functionality

- Rearranged imports in multiple files for consistency and clarity.
- Updated logging middleware to exclude specific paths from logging.
- Enhanced security module by cleaning up token handling and improving tenant validation.
- Added tenant and company scoped mixins for better database model management.
- Implemented generic CRUD routes for tenant-scoped resources.
- Improved error handling and response management in API routes.
- Cleaned up login and logout processes to ensure proper session management.
- Introduced mechanisms to clear local storage and cookies on tenant change.
- Enhanced company store to detect tenant changes and clear data accordingly.
- Added new DTO mixins for currency and value affect flags.
This commit is contained in:
2025-11-11 17:20:47 -06:00
parent ac7f8d19d8
commit b68c4316ff
247 changed files with 2248 additions and 2504 deletions

View File

@@ -5,24 +5,24 @@ Agrega todos los módulos de la aplicación
from fastapi import APIRouter
from .pedimento_codes.routes import router as pedimento_codes_router
from .payment_methods.routes import router as payment_methods_router
from .code_pedimento_regimens.routes import router as code_pedimento_regimens_router
from .containers.routes import router as containers_router
from .countries.routes import router as countries_router
from .material_types.routes import router as material_types_router
from .currency_types.routes import router as currency_types_router
from .states.routes import router as states_router
from .transport_types.routes import router as transport_types_router
from .customs_warehouses.routes import router as customs_warehouses_router
from .valuation_methods.routes import router as valuation_methods_router
from .sectors.routes import router as sectors_router
from .transport_modes.routes import router as transport_modes_router
from .customs_sections.routes import router as customs_sections_router
from .invoice_types.routes import router as invoice_types_router
from .code_pedimento_regimens.routes import router as code_pedimento_regimens_router
from .pedimento_regimens.routes import router as pedimento_regimens_router
from .customs_warehouses.routes import router as customs_warehouses_router
from .incoterms.routes import router as incoterms_router
from .invoice_types.routes import router as invoice_types_router
from .material_types.routes import router as material_types_router
from .payment_methods.routes import router as payment_methods_router
from .pedimento_codes.routes import router as pedimento_codes_router
from .pedimento_regimens.routes import router as pedimento_regimens_router
from .sectors.routes import router as sectors_router
from .states.routes import router as states_router
from .trailer_types.routes import router as trailer_types_router
from .transport_modes.routes import router as transport_modes_router
from .transport_types.routes import router as transport_types_router
from .valuation_methods.routes import router as valuation_methods_router
# Router principal
router = APIRouter()