initial commit

This commit is contained in:
2026-02-26 21:29:34 +01:00
commit d9d84634e8
72 changed files with 18491 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import type { $Fetch, SearchParameters } from 'ofetch';
export async function fetchWithRepo<T>(
fetcher: $Fetch,
url: string,
method: 'GET' | 'POST' | 'PUT' | 'DELETE' = 'GET',
body?: any,
params?: SearchParameters
): Promise<T> {
return await fetcher(url, { method, body, params });
}