summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-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 {}