mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-27 22:24:14 +00:00
fix: logo broken in metadata images, rename methods
This commit is contained in:
parent
59d2b0b2c1
commit
94eef81b93
8 changed files with 32 additions and 32 deletions
|
|
@ -12,7 +12,7 @@ export default function DeleteAccount() {
|
|||
const [error, setError] = useState<string | undefined>(undefined);
|
||||
|
||||
const handleSubmit = async () => {
|
||||
const response = await fetch(`${import.meta.env.VITE_API_URL}/api/auth/delete`, { method: "DELETE", credentials: "include" });
|
||||
const response = await fetch(`${import.meta.env.VITE_API_URL}/api/auth/delete`, { method: "POST", credentials: "include" });
|
||||
if (!response.ok) {
|
||||
const { error } = await response.json();
|
||||
setError(error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue