From 73288250ab3a486d3643a5d9a31ee4af7e2efa01 Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Tue, 21 Apr 2020 13:06:47 +0200 Subject: [PATCH] Request posts sorted in remote --- 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 b40df93..9de03bb 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') + .get('http://localhost:5000/api/posts?sort=1') .then(res => { this.posts = res.body })