Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

549 B
Raw Blame
export async function requestBackup<T>(body?: Record<string, unknown>, query?: Record<string, string>): Promise<T> {
  const suffix = query ? `?${new URLSearchParams(query)}` : "";
  const response = await fetch(`/api/v1/sys/memory-backup${suffix}`, {
    cache: "no-store", ...(body ? { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body) } : {}),
  });
  const value = await response.json();
  if (!response.ok) throw new Error(value.error || `Memory backup failed (${response.status})`);
  return value;
}