From cdf478ca66c8e7730a0d8eb173651b93b8919b98 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Mon, 8 Apr 2019 09:19:56 +0200 Subject: [PATCH] Update http methods for related api changes --- src/components/rundetail.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/rundetail.vue b/src/components/rundetail.vue index a0c4c75..ed58a11 100644 --- a/src/components/rundetail.vue +++ b/src/components/rundetail.vue @@ -135,7 +135,7 @@ export default { }, async restartRun(run, fromStart) { let res = await fetch(apiurl("/run/" + run.id + "/actions"), { - method: "POST", + method: "PUT", body: JSON.stringify({ action_type: "restart", from_start: fromStart @@ -148,7 +148,7 @@ export default { }, async stopRun(run) { let res = fetch(apiurl("/run/" + run.id + "/actions"), { - method: "POST", + method: "PUT", body: JSON.stringify({ action_type: "stop" })