fix: add router prefix for ai_ui_control WebSocket and REST routes

- APIRouter had no prefix, so WebSocket was on /ws not /api/v1/ai-ui-control/ws
- This caused 403 on every WebSocket connection attempt
- Remove debug print statements
This commit is contained in:
Agent Zero
2026-07-24 17:35:14 +02:00
parent d8787ea007
commit 6e930b814e
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ from app.plugins.builtins.ai_ui_control.schemas import (
logger = logging.getLogger(__name__)
router = APIRouter(tags=["ai-ui-control"])
router = APIRouter(prefix="/api/v1/ai-ui-control", tags=["ai-ui-control"])
# ─── REST endpoints (for AI agents) ───