Basic setup of Axios module + Test Ghibli API connection

This commit is contained in:
2020-12-16 13:17:14 +01:00
parent 80b7c19e27
commit 1278e23aec
4 changed files with 156 additions and 2 deletions

View File

@@ -1,12 +1,21 @@
<template>
<main>
<h1>Ghibli movies</h1>
{{ films }}
</main>
</template>
<script>
export default {
name: "Movies"
name: "Movies",
data() {
return {
films: []
};
},
async mounted() {
this.films = await this.$axios.$get("/api/films");
}
};
</script>