Request with newest first

This commit is contained in:
Raymonzut
2020-04-21 22:42:15 +02:00
parent e82e1bcd17
commit 088b986366
+1 -1
View File
@@ -1,7 +1,7 @@
module.exports = {
getPosts: function() {
this.$http
.get('http://localhost:5000/api/posts?sort=1')
.get('http://localhost:5000/api/posts?sort=-1')
.then(res => {
this.posts = res.body
})