diff --git a/client/api/spellsRepository.js b/client/api/spellsRepository.js index 5b60082..5f26d7b 100644 --- a/client/api/spellsRepository.js +++ b/client/api/spellsRepository.js @@ -9,6 +9,6 @@ export default { return api.get(`${resource}`) }, getSpell(id) { - return api.get(`${resource}?id=${id}`) + return api.get(`${resource}/${id}`) }, } \ No newline at end of file diff --git a/client/src/components/spells/spells-list.vue b/client/src/components/spells/spells-list.vue index 715fa05..c4be601 100644 --- a/client/src/components/spells/spells-list.vue +++ b/client/src/components/spells/spells-list.vue @@ -29,6 +29,7 @@ export default { methods: { async fetchSpells() { const { data } = await spellsRepository.getSpells() + console.log(data) return data }, async computeSpells() {