mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
457 B
Vue
40 lines
457 B
Vue
7 years ago
|
<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>
|