Update http methods for related api changes

This commit is contained in:
Simone Gotti 2019-04-08 09:19:56 +02:00
parent 4d0d4eb32c
commit cdf478ca66
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ export default {
}, },
async restartRun(run, fromStart) { async restartRun(run, fromStart) {
let res = await fetch(apiurl("/run/" + run.id + "/actions"), { let res = await fetch(apiurl("/run/" + run.id + "/actions"), {
method: "POST", method: "PUT",
body: JSON.stringify({ body: JSON.stringify({
action_type: "restart", action_type: "restart",
from_start: fromStart from_start: fromStart
@ -148,7 +148,7 @@ export default {
}, },
async stopRun(run) { async stopRun(run) {
let res = fetch(apiurl("/run/" + run.id + "/actions"), { let res = fetch(apiurl("/run/" + run.id + "/actions"), {
method: "POST", method: "PUT",
body: JSON.stringify({ body: JSON.stringify({
action_type: "stop" action_type: "stop"
}) })