You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
817 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cookie API</title>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<h1>APIStar Cookies</h1>
<div id="app">
<ul>
<li v-for="cookie in cookies">
{{ cookie.name }}
</li>
</ul>
</div>
<script>
let vm = new Vue({
el: '#app',
data: {
cookies: []
},
created() {
axios.get("http://localhost:5000/cookies").then(
(response) => {
this.cookies = response.data.data
})
},
});
</script>
</body>
</html>