first commit
This commit is contained in:
7
web/src/api/client.ts
Normal file
7
web/src/api/client.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { edenTreaty } from '@elysiajs/eden';
|
||||
import type { App } from 'backend';
|
||||
|
||||
// 创建 Eden 客户端,自动推断类型
|
||||
export const api = edenTreaty<App>('http://localhost:3001');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user