refactor(phase3-session-a): extract Image Studio models and deps into separate modules
- Created routers/image_studio/models.py with all 40 Pydantic models - Created routers/image_studio/deps.py with get_studio_manager() and _require_user_id() - Renamed old monolithic image_studio.py -> image_studio_router.py - Updated __init__.py to re-export the router for backward compatibility - Old file now imports models and deps from new modules (no inline definitions) Backward compatibility: from routers.image_studio import router still works. Route count unchanged: 33 routes, prefix /api/image-studio.
This commit is contained in:
9
backend/routers/image_studio/__init__.py
Normal file
9
backend/routers/image_studio/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""Image Studio API router package.
|
||||
|
||||
Assembled from modular sub-routers. Same prefix and tags as the original monolithic file.
|
||||
Currently re-exports from the legacy router. Sub-routers will be added in subsequent sessions.
|
||||
"""
|
||||
|
||||
from ..image_studio_router import router
|
||||
|
||||
__all__ = ["router"]
|
||||
Reference in New Issue
Block a user