<!--
This file is part of ArciveList.

# SPDX-FileCopyrightText: 2021 Hangar.org
# SPDX-License-Identifier: AGPL-3.0-or-later
-->


<template>

  <div>
    <h1>
      List of sites
    </h1>
    <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>


<script>
import axios from 'axios';

export default {
  components: {

  },
  data() {
    return {
      sites: Array,
    };
  },
  created() {

  },
  ready: function () {

  },
  mounted() {
    var self = this;
    axios.get(this.endpoint +'/sites', {
    })
    .then(function (response) {
      console.log(response.data)
      self.sites = response.data
    })
    .catch(function (error) {
      console.log(error);
    });
  },
  methods: {

  },
  watched: {

  },
  computed: {

  }
};
</script>

<style>

</style>
