mirror of
https://github.com/sussy-code/smov.git
synced 2026-01-11 20:10:16 +00:00
sending http method for deleting user account
This commit is contained in:
parent
d62ec72c5f
commit
1a11b5bdc9
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue