You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
446 B
17 lines
446 B
2 years ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Sample Book Info</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Web App Sample Book</h1>
|
||
|
<div id='content-info'></div>
|
||
|
<script>
|
||
|
fetch('http://192.168.153.131:5000/book')
|
||
|
.then(response => response.json())
|
||
|
.then(data => { document.querySelector('#content-info').innerText = data.title
|
||
|
})
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|