Skip to content

Commit

Permalink
Hardcoding baseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
rxsto committed Jun 11, 2019
1 parent 5b831b7 commit b81de32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/exhibitions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<script>
export default {
async asyncData({ env, $axios }) {
const result = await $axios.$get(env.BASE_URL + '/exhibitions')
const result = await $axios.$get('https://api.tub-aiglart.com' + '/exhibitions')
return {
solo: result.filter(exhibition => exhibition.type === 'solo').sort((a, b) => (a.year.includes('-') ? a.year.split('-')[0] : a.year) - (b.year.includes('-') ? b.year.split('-')[0] : b.year)),
group: result.filter(exhibition => exhibition.type === 'group').sort((a, b) => (a.year.includes('-') ? a.year.split('-')[0] : a.year) - (b.year.includes('-') ? b.year.split('-')[0] : b.year))
Expand Down
2 changes: 1 addition & 1 deletion pages/gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<script>
export default {
async asyncData({ env, $axios }) {
const result = await $axios.$get(env.BASE_URL + '/images')
const result = await $axios.$get('https://api.tub-aiglart.com' + '/images')
return {
images: result.filter(image => image.displayed === true),
path: process.env.CDN_PATH + 'images/'
Expand Down

0 comments on commit b81de32

Please sign in to comment.