Fix aggiunta pizza non funzionante
This commit is contained in:
@@ -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!");
|
||||||
|
|||||||
Reference in New Issue
Block a user