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:
ajaysi
2026-05-09 09:31:51 +05:30
parent ca725b77e7
commit 19a5af9682
4 changed files with 1644 additions and 0 deletions

View 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"]