refactor(api): migrate account deletion from minimal API to controller

This commit is contained in:
whoswhip
2025-07-06 19:33:19 -04:00
parent 73ac667c15
commit cc0c6a8286
4 changed files with 64 additions and 69 deletions
+1 -1
View File
@@ -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';
};