settings page update

This commit is contained in:
2026-03-09 11:34:39 +05:30
parent 530c2b6f0a
commit b5aa672b8e
4 changed files with 724 additions and 59 deletions

View File

@@ -80,6 +80,16 @@ export async function updateUserProfile(
})
}
export async function deleteUser(userId: string, token: string) {
return apiCall<{ message: string; user_deleted: number; entries_deleted: number }>(
`/api/users/${userId}`,
{
method: 'DELETE',
token,
}
)
}
// ============================================
// ENTRY ENDPOINTS
// ============================================