aboutsummaryrefslogtreecommitdiff
path: root/server/frontend/src/api.ts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-01-22 01:10:10 +0100
committerLinnea Gräf <nea@nea.moe>2025-01-22 01:10:10 +0100
commit6f148df84dfe5d0d0d1c6a0614f86e374fc8d1aa (patch)
tree1a49a6aeb9e7f901ede729f1fed9d1d230dadc87 /server/frontend/src/api.ts
parent550441921eed03b88ec94bea10deb1c45ef6e17b (diff)
downloadLocalTransactionLedger-6f148df84dfe5d0d0d1c6a0614f86e374fc8d1aa.tar.gz
LocalTransactionLedger-6f148df84dfe5d0d0d1c6a0614f86e374fc8d1aa.tar.bz2
LocalTransactionLedger-6f148df84dfe5d0d0d1c6a0614f86e374fc8d1aa.zip
feat(server): Add first analysis
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"
+)