1
0
Fork 0
forked from mirror/pixelfed
pixelfed/resources/assets/js/components/Stories.vue

40 lines
457 B
Vue
Raw Normal View History

2019-01-12 20:45:12 +00:00
<template>
<div>
<div class="card">
<div class="card-body" id="stories">
</div>
</div>
</div>
</template>
<style type="text/css" scoped>
</style>
<script type="text/javascript">
export default {
data() {
return {
stories: [],
}
},
beforeMount() {
},
mounted() {
},
methods: {
fetchStories() {
axios.get('/api/v2/stories')
.then(res => {
this.stories = res.data
});
}
}
}
</script>