blob: 8ab6272da0810cbfc72fdfda17d03f8d123311ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"
)
|