From 5dec469c24261cff37c10ebfd6fff2d0942ff043 Mon Sep 17 00:00:00 2001 From: Andrea Date: Thu, 13 Nov 2025 09:23:31 +0100 Subject: [PATCH] Fix aggiunta pizza non funzionante --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!");