Request posts sorted in remote

This commit is contained in:
Raymonzut
2020-04-21 13:06:47 +02:00
parent 74185beb79
commit 73288250ab
+1 -1
View File
@@ -1,7 +1,7 @@
module.exports = {
getPosts: function() {
this.$http
.get('http://localhost:5000/api/posts')
.get('http://localhost:5000/api/posts?sort=1')
.then(res => {
this.posts = res.body
})