import type { WebdavBackup } from "@/types/webdav"; import kyClient from "./kyClient"; export function getAutoBackupList() { return kyClient.get("webdav/backup/auto").json(); } export function getManualBackupList() { return kyClient.get("webdav/backup/manual").json(); } export function deleteWebdabBackup(path: string) { return kyClient .delete("webdav", { json: { path: path, }, }) .text(); } export function restoreWebdavBackup(path: string) { return kyClient .post("webdav/restore", { json: { path: path, }, }) .text(); }