Test function fixed (now showing raw JSON body result in alert)
This commit is contained in:
@@ -8,9 +8,7 @@ function orkodyo(){
|
||||
};
|
||||
|
||||
fetch(apiUrl + "/api/pizze", requestOptions)
|
||||
.then((response) => reply = response.text())
|
||||
.then((result) => console.log(result))
|
||||
.then((response) => response.text())
|
||||
.then((result) => alert(result))
|
||||
.catch((error) => console.error(error));
|
||||
|
||||
alert(reply);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user