Rimossa funzione test
This commit is contained in:
13
script.js
13
script.js
@@ -1,18 +1,5 @@
|
|||||||
const apiUrl = "http://localhost:5011";
|
const apiUrl = "http://localhost:5011";
|
||||||
|
|
||||||
function orkodyo(){
|
|
||||||
let reply;
|
|
||||||
const requestOptions = {
|
|
||||||
method: "GET",
|
|
||||||
redirect: "follow"
|
|
||||||
};
|
|
||||||
|
|
||||||
fetch(apiUrl + "/api/pizze", requestOptions)
|
|
||||||
.then((response) => response.text())
|
|
||||||
.then((result) => alert(result))
|
|
||||||
.catch((error) => console.error(error));
|
|
||||||
}
|
|
||||||
|
|
||||||
function listPizze(){
|
function listPizze(){
|
||||||
let reply;
|
let reply;
|
||||||
const requestOptions = {
|
const requestOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user