feat: spa account deletion

This commit is contained in:
2026-10-26 02:54:36 +01:00
parent 6aebad1f0f
commit 4714216093
6 changed files with 278 additions and 7 deletions

View File

@@ -172,6 +172,17 @@ export async function del<T = void>(path: string): Promise<T> {
return request<T>(buildUrl(path), { method: "DELETE" })
}
export async function delWithBody<T = void>(
path: string,
body: unknown,
): Promise<T> {
return request<T>(buildUrl(path), {
method: "DELETE",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body),
})
}
export async function upload<T>(
path: string,
file: File,