Improve the frontend 5
This commit is contained in:
@@ -14,7 +14,7 @@ from .core.database import db_manager
|
||||
from shared.service_base import StandardFastAPIService
|
||||
|
||||
# Import API routers
|
||||
from .api import recipes, recipe_quality_configs, recipe_operations, internal_demo
|
||||
from .api import recipes, recipe_quality_configs, recipe_operations, internal_demo, audit
|
||||
|
||||
# Import models to register them with SQLAlchemy metadata
|
||||
from .models import recipes as recipe_models
|
||||
@@ -115,6 +115,9 @@ service.setup_standard_endpoints()
|
||||
service.setup_custom_middleware()
|
||||
|
||||
# Include routers
|
||||
# IMPORTANT: Register audit router FIRST to avoid route matching conflicts
|
||||
# where {recipe_id} would match literal paths like "audit-logs"
|
||||
service.add_router(audit.router)
|
||||
service.add_router(recipes.router)
|
||||
service.add_router(recipe_quality_configs.router)
|
||||
service.add_router(recipe_operations.router)
|
||||
|
||||
Reference in New Issue
Block a user