Merge pull request #106 from RuoJi6/codex/btw-side-question

feat: add /btw side questions
This commit is contained in:
Autumn authored and GitHub committed 2026-09-11 23:08:46 +08:00
commit 4d7d65a1cf
41 files changed
+4976 -318

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ function getToken(): string | null {
return localStorage.getItem("artex_token");
}
async function http<T>(path: string, init?: RequestInit): Promise<T> {
export async function http<T>(path: string, init?: RequestInit): Promise<T> {
if (MOCK) return mockHandle<T>(init?.method ?? "GET", path, init?.body ?? null);
const token = getToken();
const r = await fetch(`/api${path}`, {