about summary refs log tree commit diff
path: root/pages
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-19 14:20:13 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-19 14:20:13 +0200
commitc52f0ac6ce79a8e1f4342219ad3651b9966b78b2 (patch)
tree0320bb0af093d4e4714892f32a4a98c793be4203 /pages
parent6ba5b9968348d0370722972e2763167a8785d8c6 (diff)
downloadpuszcza-c52f0ac6ce79a8e1f4342219ad3651b9966b78b2.tar.gz
puszcza-c52f0ac6ce79a8e1f4342219ad3651b9966b78b2.zip
Add baseUrl
Diffstat (limited to 'pages')
-rw-r--r--pages/kronika/index.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/kronika/index.vue b/pages/kronika/index.vue
index 13322f4..20341e9 100644
--- a/pages/kronika/index.vue
+++ b/pages/kronika/index.vue
@@ -32,7 +32,9 @@ export default {
   methods: {
     getPosts() {
       if (this.posts.length < 1) {
-        this.$axios.get(`/api/posts.json`).then(r => (this.posts = r.data))
+        this.$axios
+          .get(`${process.env.baseUrl}/api/posts.json`)
+          .then(r => (this.posts = r.data))
       }
       console.log(this.posts)
     }