From 6f148df84dfe5d0d0d1c6a0614f86e374fc8d1aa Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 22 Jan 2025 01:10:10 +0100 Subject: feat(server): Add first analysis --- server/frontend/src/api.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/frontend/src/api.ts') 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({ baseUrl: apiRoot }); + +export const getAnalysisList = query( + () => client.GET("/analysis/list"), + "getAnalysisList" +) -- cgit