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 12:22:09 +0100
committerGitHub <noreply@github.com>2020-01-29 12:22:09 +0100
commit3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d (patch)
tree8f9140f2326df571a6990df6e9cbd1525f19e374 /pages/oboz
parent3c2ac6715dfffc2eda38e014ed0b4986ccc7f75a (diff)
parent0a8355312990db95de3aa4e946b907ed0abf5a12 (diff)
downloadpuszcza-3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d.tar.gz
puszcza-3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d.zip
Merge pull request #26 from 19pdh/feature/json-api
Feature/json api
Diffstat (limited to 'pages/oboz')
-rw-r--r--pages/oboz/2020.vue6
1 files changed, 2 insertions, 4 deletions
diff --git a/pages/oboz/2020.vue b/pages/oboz/2020.vue
index 119220d..c1b73c4 100644
--- a/pages/oboz/2020.vue
+++ b/pages/oboz/2020.vue
@@ -43,7 +43,7 @@ import CampMap from '~/components/CampMap'
 import EmptyCampStory from '~/components/Posts/EmptyCampStory'
 import GoogleDriveLink from '~/components/GoogleDriveLink'
 
-import { parsePosts } from '~/components/Posts/PostList'
+import { apiUrl, parsePosts } from '~/api'
 
 export default {
   components: {
@@ -67,9 +67,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),