Fix aggiunta pizza non funzionante

This commit is contained in:
2025-11-13 09:23:31 +01:00
parent f38f06bef6
commit 5dec469c24

View File

@@ -101,7 +101,7 @@ function addPizza(id, nome, prezzo){
redirect: "follow" redirect: "follow"
}; };
fetch(apiUrl + "/api/pizze/" + id, requestOptions) fetch(apiUrl + "/api/pizze", requestOptions)
.then((response) => response.text()) .then((response) => response.text())
.then((result) => { .then((result) => {
alert("Pizza aggiunta con successo!"); alert("Pizza aggiunta con successo!");