import { createBobbinClient, type BobbinContext } from '$lib/api/client';
import { getConfig } from './config';

export const serverBobbin = (event: { fetch: typeof globalThis.fetch }): BobbinContext =>
	createBobbinClient({ serviceUrl: getConfig().bobbinUrl, fetch: event.fetch });
