diff options
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 {} |
