A nice introduction to my chaos
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
247 B

module.exports = {
getPosts: function() {
this.$http
.get('http://localhost:5000/api/posts?sort=1')
.then(res => {
this.posts = res.body
})
.catch(err => {
console.log(`Error: ${err}`)
})
},
}