prints api call result

This commit is contained in:
buttle 2021-10-22 12:28:16 +02:00
parent 459b6b0031
commit 3d8d6264db
1 changed files with 8 additions and 4 deletions

View File

@ -12,9 +12,12 @@ This file is part of ArciveList.
<h1>
List of sites
</h1>
<div v-for="site in sites" :key="site.id">
{{ site.title }}
</div>
<template v-for="site in sites">
<div v-if="site['o:is_public'] && site['o:title'] != 'Collections'"
:key="site.id">
{{ site['o:title'] }}
</div>
</template>
</div>
</template>
@ -40,9 +43,10 @@ export default {
},
mounted() {
var self = this;
axios.get('https://collections.arc-hive.zone/api/sites', {
axios.get('https://dev-archive.hangar.org/api/sites', {
})
.then(function (response) {
console.log(response.data)
self.sites = response.data
//self.$forceUpdate();
})