// client.ts import { treaty } from '@elysiajs/eden' import { Route } from '$routes/route-types' export type Client = ReturnType> export const makeClient = (url: string): Client => { const client = treaty(url, { fetch: { credentials: 'include', }, }) return client }