Request with newest first

master
Raymonzut 5 years ago
parent e82e1bcd17
commit 088b986366
No known key found for this signature in database
GPG Key ID: 97CF2D8BE2C69FC7
  1. 2
      client/src/remote.js

@ -1,7 +1,7 @@
module.exports = { module.exports = {
getPosts: function() { getPosts: function() {
this.$http this.$http
.get('http://localhost:5000/api/posts?sort=1') .get('http://localhost:5000/api/posts?sort=-1')
.then(res => { .then(res => {
this.posts = res.body this.posts = res.body
}) })

Loading…
Cancel
Save