Skip to content

Commit

Permalink
fix(analyser): Fixed incorrect URL construction for ExplainShell API …
Browse files Browse the repository at this point in the history
…calls

- Corrected the `url` variable to remove the deprecated `/api/` prefix in the endpoint
  • Loading branch information
Adrian Priestley committed Dec 20, 2024
1 parent ab1a154 commit 82b964f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/analyser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 82b964f

Please sign in to comment.