From 79cfd4b28071cd9ba1537d143c119d9095c913a8 Mon Sep 17 00:00:00 2001 From: Timo Volkmann Date: Thu, 18 Apr 2019 22:12:51 +0200 Subject: [PATCH] fixed broken getMyCaches call in frontend --- frontend/quasar.conf.js | 2 +- frontend/src/pages/Profile.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/quasar.conf.js b/frontend/quasar.conf.js index b175999..1285673 100644 --- a/frontend/quasar.conf.js +++ b/frontend/quasar.conf.js @@ -108,7 +108,7 @@ module.exports = function (ctx) { } : { // Base URL for API-Calls: PRODUCTION (build) //API: JSON.stringify('http://se.hs-heilbronn.de:8090') - API: JSON.stringify('http://localhost:8080') + API: JSON.stringify('http://seserver.se.hs-heilbronn.de:8090/buga19geocaching') } }, diff --git a/frontend/src/pages/Profile.vue b/frontend/src/pages/Profile.vue index 9b13749..71544d3 100644 --- a/frontend/src/pages/Profile.vue +++ b/frontend/src/pages/Profile.vue @@ -123,7 +123,7 @@ }, methods: { fetchUserCaches: function() { - const token = JSON.parse(localStorage.getItem('userToken')); + const token = JSON.parse(localStorage.getItem('userToken')).token; this.$axios.get('/api/getMyCaches', { params: {token}} ) .then((response) => { this.startedCaches = response.data;