From 874540a43d787284ef564569e30b7e1a9e07d9cb Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Mon, 11 May 2020 21:36:16 +0200 Subject: [PATCH] Generalise BASE_URL --- 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 a19c9cc..2d025a1 100644 --- a/client/src/remote.js +++ b/client/src/remote.js @@ -1,6 +1,6 @@ module.exports = { getPosts: function(id) { - const BASE_URL = 'http://localhost:5000/api/posts' + const BASE_URL = '/api/posts' const URL = BASE_URL + (id ? `/${id}` : '?sort=-1') this.$http