Add Stories.vue component, still wip

This commit is contained in:
Daniel Supernault 2019-01-12 13:45:12 -07:00
parent b752989fb6
commit a94e0ce40d
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<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>