Skip to content

Commit 82b964f

Browse files
author
Adrian Priestley
committed
fix(analyser): Fixed incorrect URL construction for ExplainShell API calls
- Corrected the `url` variable to remove the deprecated `/api/` prefix in the endpoint
1 parent ab1a154 commit 82b964f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: server/src/analyser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ export default class Analyzer {
633633
}
634634

635635
const searchParams = new URLSearchParams({ cmd: interestingNode.text }).toString()
636-
const url = `${endpoint}/api/explain?${searchParams}`
636+
const url = `${endpoint}/explain?${searchParams}`
637637

638638
const explainshellRawResponse = await fetch(url)
639639
const explainshellResponse =

0 commit comments

Comments
 (0)