Files
deer-flow/frontend/src/core/memory/api.ts
T
2026-02-03 18:18:56 +08:00

10 lines
263 B
TypeScript

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;
}