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;
|
btn.disabled = true;
|
||||||
status.textContent = 'sending…';
|
status.textContent = 'sending…';
|
||||||
try {
|
try {
|
||||||
const resp = await fetch(dashboardBase + 'answer-question/' + id, {
|
const resp = await fetch(dashboardBase + 'api/answer-question/' + id, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||||
body: 'answer=' + encodeURIComponent(answer),
|
body: 'answer=' + encodeURIComponent(answer),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue