From caf33ea2959f13d9cc893121abe816e8842eb696 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Mon, 8 Jun 2026 18:02:36 +0200 Subject: [PATCH] fix(agents): Frontend-Proxy ruft korrekten Backend-Pfad auf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backend registriert specialist-agent-Routes über den compliance-Router, prefix wird /api/compliance/specialist-agent/* (statt /api/v1/...). Frontend-Proxy hat auf /api/v1/specialist-agent/* gezeigt — 404. Verifiziert auf macmini: curl http://localhost:8002/api/compliance/specialist-agent/agents → 200 {"agents": [{"agent_id": "impressum", ...}, {"agent_id": "cookie_policy", ...}]} Co-Authored-By: Claude Opus 4.7 (1M context) --- .../app/api/sdk/v1/specialist-agent/[[...path]]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-compliance/app/api/sdk/v1/specialist-agent/[[...path]]/route.ts b/admin-compliance/app/api/sdk/v1/specialist-agent/[[...path]]/route.ts index 1ffbc8dc..54b92a62 100644 --- a/admin-compliance/app/api/sdk/v1/specialist-agent/[[...path]]/route.ts +++ b/admin-compliance/app/api/sdk/v1/specialist-agent/[[...path]]/route.ts @@ -16,7 +16,7 @@ async function proxyRequest( ) { const pathStr = pathSegments?.join('/') || '' const searchParams = request.nextUrl.searchParams.toString() - const basePath = `${BACKEND_URL}/api/v1/specialist-agent` + const basePath = `${BACKEND_URL}/api/compliance/specialist-agent` const url = pathStr ? `${basePath}/${pathStr}${searchParams ? `?${searchParams}` : ''}` : `${basePath}${searchParams ? `?${searchParams}` : ''}`