HEL-842: restore approved library and model connection controls
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user