iOSBuildServer/backend/routers/apps.py
shen 6f4f625c56 Initial commit: iOS Build Server
- FastAPI backend with build queue, WebSocket logs, task management
- Vue 3 frontend with build/config/history views
- Xcode project build automation with IPA export
- Fix: initialize build_dir before try block to ensure cleanup on early failure
2026-06-06 17:42:27 +08:00

28 lines
664 B
Python

"""打包选择 API"""
from fastapi import APIRouter
from .config import load_config
router = APIRouter(prefix="/api", tags=["apps"])
@router.get("/apps")
async def get_apps_for_build():
"""获取 apps 列表(供打包选择)"""
config = load_config()
return config.get("apps", {})
@router.get("/schemes")
async def get_schemes_for_build():
"""获取 schemes 列表(供打包选择)"""
config = load_config()
return config.get("schemes", {})
@router.get("/branches")
async def get_branches_for_build():
"""获取分支列表(供打包选择)"""
config = load_config()
return config.get("branches", ["main"])