sending http method for deleting user account

This commit is contained in:
unknown 2025-02-17 21:09:40 +01:00
parent d62ec72c5f
commit 1a11b5bdc9

View file

@ -158,6 +158,7 @@ export async function deleteUser(
account: AccountWithToken,
): Promise<UserResponse> {
return ofetch<UserResponse>(`/users/${account.userId}`, {
method: "DELETE",
headers: getAuthHeaders(account.token),
baseURL: url,
});