- Fixed some API calls
This commit is contained in:
@@ -9,6 +9,6 @@ export default {
|
|||||||
return api.get(`${resource}`)
|
return api.get(`${resource}`)
|
||||||
},
|
},
|
||||||
getSpell(id) {
|
getSpell(id) {
|
||||||
return api.get(`${resource}?id=${id}`)
|
return api.get(`${resource}/${id}`)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -29,6 +29,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
async fetchSpells() {
|
async fetchSpells() {
|
||||||
const { data } = await spellsRepository.getSpells()
|
const { data } = await spellsRepository.getSpells()
|
||||||
|
console.log(data)
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
async computeSpells() {
|
async computeSpells() {
|
||||||
|
|||||||
Reference in New Issue
Block a user