feat: 更新环境变量配置,添加 API 代理支持,新增 API 接口文件

This commit is contained in:
2025-12-13 16:29:23 +07:00
parent 7d60a47787
commit 378514c7b9
5 changed files with 159 additions and 3 deletions

6
src/api/index.ts Normal file
View 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 };