mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
refactor(api): migrate account deletion from minimal API to controller
This commit is contained in:
@@ -264,7 +264,7 @@ function deleteAccount() {
|
||||
confirmBtn.onclick = async function () {
|
||||
if (confirmBtn.disabled) return;
|
||||
try {
|
||||
await fetch('/api/accounts/delete', { method: 'POST'});
|
||||
await fetch('/api/auth/delete', { method: 'DELETE'});
|
||||
} catch { }
|
||||
window.location.href = '/register';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user