Compare commits
2 Commits
1.1
...
1a88eb52e2
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a88eb52e2 | |||
| b7846c31d7 |
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user