import type { FetchLike } from '$lib/api/core' import { buildUrl, json } from '$lib/api/core' export async function getJson(path: string, fetchFn: FetchLike, init?: RequestInit): Promise { const url = buildUrl(path) return json(fetchFn, url, init) }