mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 08:50:20 +00:00
feat: server table 1/10
This commit is contained in:
1 parent
bfdae2838f
commit
680dc219d3
10 files changed
+427
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user