Compare commits

...

View file

@ -224,7 +224,7 @@ window.marked = marked;
closeOverflowMenu();
const f = document.createElement('form');
f.method = 'POST';
f.action = `${dashUrl}rebuild/${label}`;
f.action = `${dashUrl}api/rebuild/${label}`;
document.body.appendChild(f);
f.submit();
});
@ -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),