fixed delete cache

This commit is contained in:
Timo Volkmann 2019-04-30 17:49:58 +02:00
parent 8c647b0b09
commit a9450d448f
2 changed files with 4 additions and 4 deletions

View File

@ -113,8 +113,8 @@ module.exports = function (ctx) {
API: JSON.stringify('https://seserver.se.hs-heilbronn.de:8443/buga19geocaching')
}
: { // Base URL for API-Calls: PRODUCTION (build)
//API: JSON.stringify('http://seserver.se.hs-heilbronn.de:9080/buga19geocaching')
API: JSON.stringify('http://localhost:8080')
API: JSON.stringify('https://seserver.se.hs-heilbronn.de:8443/buga19geocaching')
//API: JSON.stringify('http://localhost:8080')
}
},

View File

@ -145,8 +145,8 @@
editCache() {
},
deleteCache(id) {
console.log('delete cache: ' + id)
this.$axios.delete('/api/deleteCache', {params: {cacheID: id}})
console.log('delete cache: ' + id);
this.$axios.get('/api/deleteCache', {params: {cacheID: id}})
.then((response) => {
this.fetchAllCaches()
}).catch((error) => {