Break monolithic model_info, search, and workflow route files into smaller modules by responsibility: civitai_search, custom_url, model_details, search_support, source_search, workflow_analysis, hashes, and loaded_models. Update registry imports to preserve the existing route registrations and API surface. Add partition coverage tests to ensure no route endpoints are dropped or duplicated.
13 lines
465 B
Python
13 lines
465 B
Python
"""Compatibility exports for workflow route registration."""
|
|
|
|
from .context import RouteContext
|
|
from .hashes import register_hash_routes
|
|
from .loaded_models import register_loaded_model_routes
|
|
from .workflow_analysis import register_workflow_analysis_routes
|
|
|
|
__all__ = ["register_loaded_model_routes", "register_workflow_routes"]
|
|
|
|
def register_workflow_routes(context: RouteContext):
|
|
register_workflow_analysis_routes(context)
|
|
register_hash_routes(context)
|