Compare commits

...

2 Commits

Author SHA1 Message Date
1a88eb52e2 Fix handling risposta JSON per PizzaExpress 0.3.6 2026-01-29 08:55:22 +01:00
b7846c31d7 Cambiato URL in endpoint di release 2026-01-29 08:53:48 +01:00

View File

@@ -1,4 +1,4 @@
const apiUrl = "https://localhost:7297"; // Inserire qui l'URL del web server Kestrel const apiUrl = "http://localhost:5000"; // Inserire qui l'URL del web server Kestrel
function listPizze(){ function listPizze(){
let reply; let reply;
@@ -14,7 +14,7 @@ function listPizze(){
let table = '<table><tr><th>ID</th><th>Nome</th><th>Prezzo</th><th>Note</th><th>Azioni</th></tr>'; let table = '<table><tr><th>ID</th><th>Nome</th><th>Prezzo</th><th>Note</th><th>Azioni</th></tr>';
// Aggiungiamo ogni pizza come riga della tabella // Aggiungiamo ogni pizza come riga della tabella
pizze.pizze.forEach(pizza => { pizze.forEach(pizza => {
table += `<tr> table += `<tr>
<td>${pizza.id}</td> <td>${pizza.id}</td>
<td>${pizza.nome}</td> <td>${pizza.nome}</td>