feat: 更新环境变量配置,添加 API 代理支持,新增 API 接口文件
This commit is contained in:
6
src/api/index.ts
Normal file
6
src/api/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { App } from "@riwa/api-types";
|
||||
import { treaty } from "@elysiajs/eden";
|
||||
|
||||
const api = treaty<App>(`${window.location.origin}/api`);
|
||||
|
||||
export { api };
|
||||
Reference in New Issue
Block a user