feat: server table 1/10

This commit is contained in:
naiba
2024-11-06 00:09:03 +08:00
parent bfdae2838f
commit 680dc219d3
10 changed files with 427 additions and 2 deletions
+4
View File
@@ -46,3 +46,7 @@ export async function fetcher<T>(method: FetcherMethod, path: string, data?: any
}
return responseData.data;
}
export async function swrFetcher<T>(input: string | URL | globalThis.Request, init?: RequestInit) {
return fetcher<T>(init?.method as FetcherMethod, input.toString(), init?.body);
}