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