mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
15 lines
439 B
JavaScript
15 lines
439 B
JavaScript
import { getRootFromIndexLink } from "onload";
|
|
import axios from "axios";
|
|
|
|
const getUrl = (path) => getRootFromIndexLink() + path;
|
|
|
|
export function getInvocationJobsSummary(invocationId) {
|
|
const url = getUrl(`api/invocations/${invocationId}/jobs_summary`);
|
|
return axios.get(url);
|
|
}
|
|
|
|
export function cancelWorkflowScheduling(invocationId) {
|
|
const url = getUrl(`api/invocations/${invocationId}`);
|
|
return axios.delete(url);
|
|
}
|