File size: 263 Bytes
033ca06
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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;
}