diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-05 22:54:30 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-05 22:54:30 +0000 |
| commit | ed6cb17501bd14ce5ec009f68fba54539cf1a470 (patch) | |
| tree | 008995449442524fc67bee90f718464aa9d9a982 /web/app.js | |
| parent | 4c0ee5c215b6b1965ee2ac30d9341f5e8fb6f569 (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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 {} |
