diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-02 20:00:08 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-02 20:00:08 +0100 |
commit | ab71fb6046e0f3bfb8f103af32ac4b5e821cc835 (patch) | |
tree | 45fb61bb7c51b63de4d4710033e9e7ced9976cf9 /pages/kronika/_year | |
parent | 53e2f45c6a62bc66185213252378944b19a6c7f9 (diff) | |
download | puszcza-ab71fb6046e0f3bfb8f103af32ac4b5e821cc835.tar.gz puszcza-ab71fb6046e0f3bfb8f103af32ac4b5e821cc835.zip |
Fix api url
Diffstat (limited to 'pages/kronika/_year')
-rw-r--r-- | pages/kronika/_year/_month/_day/_title/index.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/kronika/_year/_month/_day/_title/index.vue b/pages/kronika/_year/_month/_day/_title/index.vue index 7990abe..8fdbf93 100644 --- a/pages/kronika/_year/_month/_day/_title/index.vue +++ b/pages/kronika/_year/_month/_day/_title/index.vue @@ -41,7 +41,7 @@ export default { const { year, month, day, title } = params const response = await axios .get( - `${process.env.baseUrl}/api/posts/${year}/${month}/${day}/${title}.json` + `${window.location.origin}/api/posts/${year}/${month}/${day}/${title}.json` ) .catch(err => ({ notFound: true })) |