Add single domain gateway routing

This commit is contained in:
2026-07-09 16:03:29 +08:00
parent 664d1acbce
commit 7587da6d18
14 changed files with 133 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
import type { ApiResponse, CaptchaResult, ChatMessage, ChatSession, LoginResult, UserProfile } from "../types/api";
const API_BASE = import.meta.env.VITE_API_BASE_URL ?? "http://127.0.0.1:8100/api";
const API_BASE = import.meta.env.VITE_API_BASE_URL ?? "/api";
const TOKEN_KEY = "ai-kb-user-token";
export function getToken() {