refactor(phase3-session-b2): extract edit and face_swap into sub-routers

Extracted 2 endpoint groups into separate sub-router modules:
- edit.py: 4 endpoints (POST /edit/process, GET /edit/operations, GET /edit/models, POST /edit/recommend)
- face_swap.py: 3 endpoints (POST /face-swap/process, GET /face-swap/models, POST /face-swap/recommend)

All 33 routes preserved (10 extracted in B1, 7 extracted in B2, 16 remaining in legacy).
This commit is contained in:
ajaysi
2026-05-09 10:28:27 +05:30
parent 463cfdc5cf
commit 0d20dcb801
4 changed files with 215 additions and 186 deletions

View File

@@ -8,11 +8,15 @@ from .health import router as health_router
from .upscale import router as upscale_router
from .control import router as control_router
from .social import router as social_router
from .edit import router as edit_router
from .face_swap import router as face_swap_router
legacy_router.include_router(health_router)
legacy_router.include_router(upscale_router)
legacy_router.include_router(control_router)
legacy_router.include_router(social_router)
legacy_router.include_router(edit_router)
legacy_router.include_router(face_swap_router)
router = legacy_router