From f604406453f95c82c3e5e4294a51245661868bbe Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 14 Sep 2017 14:07:21 +0200 Subject: First attempt at experiment list UI --- src/api/routes/jobs.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/api/routes/jobs.js (limited to 'src/api/routes/jobs.js') diff --git a/src/api/routes/jobs.js b/src/api/routes/jobs.js new file mode 100644 index 00000000..90947a51 --- /dev/null +++ b/src/api/routes/jobs.js @@ -0,0 +1,9 @@ +import {getAll, getById} from "./util"; + +export function getAllJobs() { + return getAll("/jobs"); +} + +export function getTasksOfJob(jobId) { + return getById("/jobs/{jobId}/tasks", {jobId}); +} -- cgit v1.2.3