summaryrefslogtreecommitdiff
path: root/src/api/routes/jobs.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-14 14:07:21 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:06:02 +0200
commitf604406453f95c82c3e5e4294a51245661868bbe (patch)
tree6282cc3eb3164ddd94052175f872c8fc2ee2f623 /src/api/routes/jobs.js
parent7151ae60cf587a502a7e09d19ebd0fd33e761bf2 (diff)
First attempt at experiment list UI
Diffstat (limited to 'src/api/routes/jobs.js')
-rw-r--r--src/api/routes/jobs.js9
1 files changed, 9 insertions, 0 deletions
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});
+}