From 82b964f344f14d7f1853140890d4962ff1e75e57 Mon Sep 17 00:00:00 2001 From: Adrian Priestley Date: Fri, 20 Dec 2024 14:19:05 -0330 Subject: [PATCH] fix(analyser): Fixed incorrect URL construction for ExplainShell API calls - Corrected the `url` variable to remove the deprecated `/api/` prefix in the endpoint --- server/src/analyser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/analyser.ts b/server/src/analyser.ts index 3d0115997..72cecbaf0 100644 --- a/server/src/analyser.ts +++ b/server/src/analyser.ts @@ -633,7 +633,7 @@ export default class Analyzer { } const searchParams = new URLSearchParams({ cmd: interestingNode.text }).toString() - const url = `${endpoint}/api/explain?${searchParams}` + const url = `${endpoint}/explain?${searchParams}` const explainshellRawResponse = await fetch(url) const explainshellResponse =