marc-leopold/pages/galleries.vue

42 lines
696 B
Vue
Raw Normal View History

2019-01-03 21:10:44 +00:00
<template>
2019-02-06 12:45:22 +00:00
<GalleryPage v-if="galleries" :galleries="galleries">
2019-01-03 21:10:44 +00:00
</GalleryPage>
</template>
<script>
import GalleryPage from '@/components/GalleryPage'
export default {
2019-01-31 10:20:14 +00:00
name: 'GalleriesPage',
2019-01-03 21:10:44 +00:00
components: {
GalleryPage
},
2019-02-06 12:45:22 +00:00
data () {
return {
galleries: false,
}
},
2019-01-31 10:20:14 +00:00
head () {
return {
title: 'My Galleries',
2019-02-04 12:53:18 +00:00
meta: [{
hid: 'description',
name: 'description',
content: 'A showcase of the work of photographer Marc Leopold.'
}],
2019-01-31 10:20:14 +00:00
}
},
2019-02-06 12:45:22 +00:00
async asyncData ({ $axios }) {
let { galleries } = await $axios.$get('/api/v1/galleries')
return { galleries }
2019-02-04 12:00:30 +00:00
},
2019-01-03 21:10:44 +00:00
}
</script>
<style scoped lang="scss">
</style>