feat: add memory settings page

This commit is contained in:
Henry Li
2026-02-03 18:18:56 +08:00
parent 1cf081120e
commit 552d1c3a9a
13 changed files with 411 additions and 17 deletions
+9
View File
@@ -0,0 +1,9 @@
import { getBackendBaseURL } from "../config";
import type { UserMemory } from "./types";
export async function loadMemory() {
const memory = await fetch(`${getBackendBaseURL()}/api/memory`);
const json = await memory.json();
return json as UserMemory;
}