update api runs url (plural fix)
This commit is contained in:
parent
cdf478ca66
commit
a0097ea16e
|
@ -134,7 +134,7 @@ export default {
|
||||||
return "unknown";
|
return "unknown";
|
||||||
},
|
},
|
||||||
async restartRun(run, fromStart) {
|
async restartRun(run, fromStart) {
|
||||||
let res = await fetch(apiurl("/run/" + run.id + "/actions"), {
|
let res = await fetch(apiurl("/runs/" + run.id + "/actions"), {
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
action_type: "restart",
|
action_type: "restart",
|
||||||
|
@ -147,7 +147,7 @@ export default {
|
||||||
throw Error(res.statusText);
|
throw Error(res.statusText);
|
||||||
},
|
},
|
||||||
async stopRun(run) {
|
async stopRun(run) {
|
||||||
let res = fetch(apiurl("/run/" + run.id + "/actions"), {
|
let res = fetch(apiurl("/runs/" + run.id + "/actions"), {
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
action_type: "stop"
|
action_type: "stop"
|
||||||
|
|
|
@ -19,12 +19,12 @@ export async function fetchRuns(group, lastrun) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function fetchRun(runid) {
|
export async function fetchRun(runid) {
|
||||||
let res = await fetch(apiurl("/run/" + runid));
|
let res = await fetch(apiurl("/runs/" + runid));
|
||||||
return res.json();
|
return res.json();
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function fetchTask(runid, taskid) {
|
export async function fetchTask(runid, taskid) {
|
||||||
let res = await fetch(apiurl("/run/" + runid + "/task/" + taskid))
|
let res = await fetch(apiurl("/runs/" + runid + "/tasks/" + taskid))
|
||||||
return res.json();
|
return res.json();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue