diff --git a/script.js b/script.js index 83135d4..579af0d 100644 --- a/script.js +++ b/script.js @@ -101,7 +101,7 @@ function addPizza(id, nome, prezzo){ redirect: "follow" }; - fetch(apiUrl + "/api/pizze/" + id, requestOptions) + fetch(apiUrl + "/api/pizze", requestOptions) .then((response) => response.text()) .then((result) => { alert("Pizza aggiunta con successo!");