This commit is contained in:
Hide_D committed 2023-08-09 16:23:31 +00:00
1 parent 81d16aaba2
commit 3a06e44e85
18 files changed
+60 -55

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import isArray from "lodash-es/isArray";
import isEmpty from "lodash-es/isEmpty";
import ky from "ky";
import type { HttpMethod, InvalidResponse, RawArgType, ValidResponse } from "../apiStructure/defs";
import type { HttpMethod, InvalidResponse, RawArgType, ValidResponse } from "../apiStructure/defs.js";
export async function callClientAPI<ResultType extends ValidResponse>(
method: HttpMethod,
+4 -4
View File
@@ -1,7 +1,7 @@
import { APIPathGen } from "./APIPathGen";
import type { APITail, RawArgType } from "../apiStructure/defs";
import { structure } from "../apiStructure/sammoRootAPI";
import { callClientAPI } from "./generator";
import { APIPathGen } from "./APIPathGen.js";
import type { APITail, RawArgType } from "../apiStructure/defs.js";
import { structure } from "../apiStructure/sammoRootAPI.js";
import { callClientAPI } from "./generator.js";
const apiRoot = process.env.API_ROOT_PATH ?? process.env.VITE_API_ROOT_PATH ?? '/rootAPI';