diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-19 14:01:30 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-19 14:01:30 +0200 |
commit | 6ba5b9968348d0370722972e2763167a8785d8c6 (patch) | |
tree | ca2c217a708325e7d23c70fec567681131c4a4cd /pages/kronika | |
parent | ab22672cb9911b7dda59acc4557237b835926816 (diff) | |
download | puszcza-6ba5b9968348d0370722972e2763167a8785d8c6.tar.gz puszcza-6ba5b9968348d0370722972e2763167a8785d8c6.zip |
Fix request path
Diffstat (limited to 'pages/kronika')
-rw-r--r-- | pages/kronika/index.vue | 6 |
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) } |