Files
habitica/website/client/components/static/newStuff.vue
Matteo Pagliazzi 592cfef6c6 Client: use api v4 (#10457)
* client: use api v4

* fix tests
2018-06-21 21:25:27 +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>