From 203ce446f42d1daaf14f69c80cf5bc9daafdd03a Mon Sep 17 00:00:00 2001 From: busya Date: Wed, 21 Jan 2026 14:00:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B0=D1=88=D1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .kilocode/mcp.json | 2 +- backend/src/app.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.kilocode/mcp.json b/.kilocode/mcp.json index f5c3463..6b0a486 100644 --- a/.kilocode/mcp.json +++ b/.kilocode/mcp.json @@ -1 +1 @@ -{"mcpServers":{"tavily":{"command":"npx","args":["-y","tavily-mcp@0.2.3"],"env":{"TAVILY_API_KEY":"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"},"alwaysAllow":[]}}} \ No newline at end of file +{"mcpServers":{}} \ No newline at end of file diff --git a/backend/src/app.py b/backend/src/app.py index 0b64842..23ea976 100755 --- a/backend/src/app.py +++ b/backend/src/app.py @@ -86,7 +86,7 @@ async def log_requests(request: Request, call_next): app.include_router(plugins.router, prefix="/api/plugins", tags=["Plugins"]) app.include_router(tasks.router, prefix="/api/tasks", tags=["Tasks"]) app.include_router(settings.router, prefix="/api/settings", tags=["Settings"]) -app.include_router(connections.router, prefix="/api/settings/connections", tags=["Connections"]) +app.include_router(connections.router, prefix="/api/connections", tags=["Connections"]) app.include_router(environments.router, prefix="/api/environments", tags=["Environments"]) app.include_router(mappings.router) app.include_router(migration.router) @@ -167,7 +167,8 @@ if frontend_path.exists(): with belief_scope("serve_spa", f"path={file_path}"): # Don't serve SPA for API routes that fell through if file_path.startswith("api/"): - raise HTTPException(status_code=404, detail="API endpoint not found") + logger.info(f"[DEBUG] API route fell through to serve_spa: {file_path}") + raise HTTPException(status_code=404, detail=f"API endpoint not found: {file_path}") full_path = frontend_path / file_path if full_path.is_file():