Initial commit from create-turbo

This commit is contained in:
TZGyn
2026-05-09 15:27:01 +08:00
commit 22064d4bc4
482 changed files with 15482 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
// client.ts
import { treaty } from '@elysiajs/eden'
import { Route } from '$routes/route-types'
export type Client = ReturnType<typeof treaty<Route>>
export const makeClient = (url: string): Client => {
const client = treaty<Route>(url, {
fetch: {
credentials: 'include',
},
})
return client
}