- Fixed some API calls

This commit is contained in:
Alexis
2020-05-26 21:49:15 +02:00
parent af7e6ff701
commit fe5549d817
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,6 @@ export default {
return api.get(`${resource}`)
},
getSpell(id) {
return api.get(`${resource}?id=${id}`)
return api.get(`${resource}/${id}`)
},
}

View File

@@ -29,6 +29,7 @@ export default {
methods: {
async fetchSpells() {
const { data } = await spellsRepository.getSpells()
console.log(data)
return data
},
async computeSpells() {