summaryrefslogtreecommitdiff
path: root/src/api/routes/traces.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/traces.js')
-rw-r--r--src/api/routes/traces.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/api/routes/traces.js b/src/api/routes/traces.js
new file mode 100644
index 00000000..6a34ca7c
--- /dev/null
+++ b/src/api/routes/traces.js
@@ -0,0 +1,9 @@
+import {getAll, getById} from "./util";
+
+export function getAllTraces() {
+ return getAll("/traces");
+}
+
+export function getJobsOfTrace(traceId) {
+ return getById("/traces/{traceId}/jobs", {traceId});
+}