aboutsummaryrefslogtreecommitdiff
path: root/server/frontend/src/api.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/frontend/src/api.ts')
-rw-r--r--server/frontend/src/api.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/frontend/src/api.ts b/server/frontend/src/api.ts
index 22cf6ca..8ab6272 100644
--- a/server/frontend/src/api.ts
+++ b/server/frontend/src/api.ts
@@ -1,6 +1,13 @@
import createClient from "openapi-fetch";
import type { paths } from "./api-schema.js";
+import { query } from "@solidjs/router";
+export { type paths };
const apiRoot = import.meta.env.DEV ? "//localhost:8080/api" : "/api";
export const client = createClient<paths>({ baseUrl: apiRoot });
+
+export const getAnalysisList = query(
+ () => client.GET("/analysis/list"),
+ "getAnalysisList"
+)