Files
habitica/website/client/src/components/static/newStuff.vue
T
Matteo Pagliazzi b44fbdcb14 old client structure
2019-10-01 11:44:38 +02:00

24 lines
372 B
Vue

<template lang='pug'>
.static-view(v-html="html")
</template>
<style lang='scss'>
@import '~client/assets/scss/static.scss';
</style>
<script>
import axios from 'axios';
export default {
data () {
return {
html: '',
};
},
async mounted () {
let response = await axios.get('/api/v4/news');
this.html = response.data.html;
},
};
</script>