about summary refs log tree commit diff
path: root/pages/oboz
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-29 10:56:31 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-29 10:56:31 +0100
commit1c046bd96752feb1bbc0fb0e7b5fca94f299664a (patch)
treea2c5993f2c39846fef8e39c2496563edb1422c66 /pages/oboz
parenta46cabb3ed27fc099f0eb68c4b073fea6615e822 (diff)
downloadpuszcza-1c046bd96752feb1bbc0fb0e7b5fca94f299664a.tar.gz
puszcza-1c046bd96752feb1bbc0fb0e7b5fca94f299664a.zip
Add apiUrl
Diffstat (limited to 'pages/oboz')
-rw-r--r--pages/oboz/2020.vue5
1 files changed, 2 insertions, 3 deletions
diff --git a/pages/oboz/2020.vue b/pages/oboz/2020.vue
index 119220d..e26cde6 100644
--- a/pages/oboz/2020.vue
+++ b/pages/oboz/2020.vue
@@ -44,6 +44,7 @@ import EmptyCampStory from '~/components/Posts/EmptyCampStory'
 import GoogleDriveLink from '~/components/GoogleDriveLink'
 
 import { parsePosts } from '~/components/Posts/PostList'
+import { apiUrl } from '~/api'
 
 export default {
   components: {
@@ -67,9 +68,7 @@ export default {
   },
   async asyncData() {
     try {
-      let posts = await axios.get(
-        `https://puszcza.netlify.com/api/category/oboz2020.json`
-      )
+      let posts = await axios.get(`${apiUrl}/category/oboz2020.json`)
       console.log(posts)
       return {
         posts: parsePosts(posts.data),