From fe5549d817bf02ade3b09edf52eab138ec19821d Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Tue, 26 May 2020 21:49:15 +0200 Subject: [PATCH] - Fixed some API calls --- client/api/spellsRepository.js | 2 +- client/src/components/spells/spells-list.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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() {