about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-19 14:01:30 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-19 14:01:30 +0200
commit6ba5b9968348d0370722972e2763167a8785d8c6 (patch)
treeca2c217a708325e7d23c70fec567681131c4a4cd
parentab22672cb9911b7dda59acc4557237b835926816 (diff)
downloadpuszcza-6ba5b9968348d0370722972e2763167a8785d8c6.tar.gz
puszcza-6ba5b9968348d0370722972e2763167a8785d8c6.zip
Fix request path
-rw-r--r--pages/kronika/index.vue6
1 files changed, 1 insertions, 5 deletions
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)
     }