From 6ba5b9968348d0370722972e2763167a8785d8c6 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 19 Oct 2019 14:01:30 +0200 Subject: Fix request path --- pages/kronika/index.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pages') diff --git a/pages/kronika/index.vue b/pages/kronika/index.vue index f61e615..13322f4 100644 --- a/pages/kronika/index.vue +++ b/pages/kronika/index.vue @@ -17,8 +17,6 @@ import ChroniclePost from '~/components/ChroniclePost' import k from '~/api' -const URL = process.env.DEPLOY_URL || 'http://localhost:8080' - export default { components: { ChroniclePost @@ -34,9 +32,7 @@ export default { methods: { getPosts() { if (this.posts.length < 1) { - this.$axios - .get(`${URL}/api/posts.json`) - .then(r => (this.posts = r.data)) + this.$axios.get(`/api/posts.json`).then(r => (this.posts = r.data)) } console.log(this.posts) } -- cgit 1.4.1