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.
11 lines
350 B
Python
11 lines
350 B
Python
"""Compatibility exports for search route registration."""
|
|
|
|
from .context import RouteContext
|
|
from .search_support import register_search_support_routes
|
|
from .source_search import register_source_search_routes
|
|
|
|
|
|
def register_search_routes(context: RouteContext):
|
|
register_source_search_routes(context)
|
|
register_search_support_routes(context)
|