fix(#2121): add missing api/ prefix to answer-question POST from agent term

This commit is contained in:
damocles 2026-07-01 19:19:07 +02:00 committed by mara
commit 98b5e976af

View file

@ -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),