From 088b986366ec6ef2a3e053d30694fabe35518dcd Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Tue, 21 Apr 2020 22:42:15 +0200 Subject: [PATCH] Request with newest first --- client/src/remote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/remote.js b/client/src/remote.js index 9de03bb..6b6ac99 100644 --- a/client/src/remote.js +++ b/client/src/remote.js @@ -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 })