fix(#2121): add missing api/ prefix to answer-question POST from agent term
This commit is contained in:
parent
ae41e39dfb
commit
98b5e976af
1 changed files with 1 additions and 1 deletions
|
|
@ -1053,7 +1053,7 @@ window.marked = marked;
|
|||
btn.disabled = true;
|
||||
status.textContent = 'sending…';
|
||||
try {
|
||||
const resp = await fetch(dashboardBase + 'answer-question/' + id, {
|
||||
const resp = await fetch(dashboardBase + 'api/answer-question/' + id, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||
body: 'answer=' + encodeURIComponent(answer),
|
||||
|
|
|
|||
Loading…
Reference in a new issue