summaryrefslogtreecommitdiff
path: root/web/app.js
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-05 22:54:30 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-05 22:54:30 +0000
commited6cb17501bd14ce5ec009f68fba54539cf1a470 (patch)
tree008995449442524fc67bee90f718464aa9d9a982 /web/app.js
parent4c0ee5c215b6b1965ee2ac30d9341f5e8fb6f569 (diff)
web: fix Restart button calling nonexistent /restart endpoint
restartTask() was POSTing to /api/tasks/{id}/restart (405) instead of the existing /api/tasks/{id}/run endpoint. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'web/app.js')
-rw-r--r--web/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app.js b/web/app.js
index 578d9a8..20d7a03 100644
--- a/web/app.js
+++ b/web/app.js
@@ -303,7 +303,7 @@ async function cancelTask(taskId) {
}
async function restartTask(taskId) {
- const res = await fetch(`${API_BASE}/api/tasks/${taskId}/restart`, { method: 'POST' });
+ const res = await fetch(`${API_BASE}/api/tasks/${taskId}/run`, { method: 'POST' });
if (!res.ok) {
let msg = `HTTP ${res.status}`;
try { const body = await res.json(); msg = body.error || body.message || msg; } catch {}