- Implemented a new page for managing fixed asset classes with full CRUD functionality. - Added filtering options for searching classes by code, description, type, and fraction. - Integrated dialogs for inserting, editing, and deleting classes with validation. - Enhanced error handling and user feedback with toast notifications. - Created an embedded iframe for the fixed asset classes page in the merchandise section.
29 lines
713 B
Python
29 lines
713 B
Python
"""
|
|
Router principal de API v1
|
|
Agrega todos los módulos de la aplicación
|
|
"""
|
|
|
|
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
|
|
|
|
# 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)
|
|
|
|
|
|
# Health check
|
|
@router.get("/status")
|
|
def status():
|
|
"""Health check de la API"""
|
|
return {"status": "ok", "version": "1.0.0", "api": "v1"}
|