Improve the frontend 5
This commit is contained in:
@@ -13,7 +13,7 @@ from app.core.database import database_manager
|
||||
from app.api.orders import router as orders_router
|
||||
from app.api.customers import router as customers_router
|
||||
from app.api.order_operations import router as order_operations_router
|
||||
from app.api import internal_demo
|
||||
from app.api import internal_demo, audit
|
||||
from shared.service_base import StandardFastAPIService
|
||||
|
||||
|
||||
@@ -89,6 +89,12 @@ app = service.create_app()
|
||||
service.setup_standard_endpoints()
|
||||
|
||||
# Include routers - organized by ATOMIC and BUSINESS operations
|
||||
# IMPORTANT: Register specific routes (audit, customers) BEFORE parameterized routes (orders)
|
||||
# to avoid route matching conflicts where {order_id} would match literal paths like "audit-logs"
|
||||
|
||||
# AUDIT: Audit log retrieval endpoints - Must be registered FIRST
|
||||
service.add_router(audit.router)
|
||||
|
||||
# ATOMIC: Direct CRUD operations
|
||||
# NOTE: Register customers_router BEFORE orders_router to ensure /customers
|
||||
# matches before the parameterized /{order_id} route
|
||||
|
||||
Reference in New Issue
Block a user