HEL-842: restore approved library and model connection controls

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
2026-10-25 00:35:31 +08:00
co-authored by multica-agent
parent 7fbcfad29e
commit 27613336ff
13 changed files with 791 additions and 74 deletions
+4 -2
View File
@@ -24,8 +24,8 @@ from calliope.routers import (
jobs,
library,
playground,
prompt_tools,
projects,
prompt_tools,
results,
scenes,
shots,
@@ -167,7 +167,9 @@ def create_app(static_dir: Path | None = None) -> FastAPI:
async def api_not_found(full_path: str) -> None:
raise HTTPException(status_code=404, detail=f"API route not found: /api/{full_path}")
resolved_static = static_dir if static_dir is not None else Path(__file__).resolve().parent / "static"
resolved_static = (
static_dir if static_dir is not None else Path(__file__).resolve().parent / "static"
)
if resolved_static.exists():
app.mount("/", SPAStaticFiles(directory=resolved_static, html=True), name="static")