- Fixed some typos

This commit is contained in:
Alexis
2020-06-29 15:55:37 +02:00
parent f8a1a9e73f
commit 4e04014b32
6 changed files with 3 additions and 16 deletions

View File

@@ -1,9 +1,7 @@
import api from './api' import api from './api'
// URL for spells
const resource = "/ingredients" const resource = "/ingredients"
// CRUD methods for spells
export default { export default {
getIngredients() { getIngredients() {
return api.get(`${resource}`) return api.get(`${resource}`)

View File

@@ -1,9 +1,7 @@
import api from './api' import api from './api'
// URL for spells
const resource = "/meta_schools" const resource = "/meta_schools"
// CRUD methods for spells
export default { export default {
getMetaSchools() { getMetaSchools() {
return api.get(`${resource}`) return api.get(`${resource}`)

View File

@@ -1,17 +1,12 @@
import api from './api' import api from './api'
// URL for spells
const resource = "/schools" const resource = "/schools"
// CRUD methods for spells
export default { export default {
getSchools() { getOne() {
return api.get(`${resource}`) return api.get(`${resource}`)
}, },
getSchool(id) { getAll(id) {
return api.get(`${resource}/${id}`) return api.get(`${resource}/${id}`)
},
getSpellsFromSchool(id) {
return api.get(`${resource}/${id}/spells`)
} }
} }

View File

@@ -1,9 +1,7 @@
import api from './api' import api from './api'
// URL for spells
const resource = "/spells" const resource = "/spells"
// CRUD methods for spells
export default { export default {
getAll() { getAll() {
return api.get(`${resource}`) return api.get(`${resource}`)

View File

@@ -1,9 +1,7 @@
import api from './api' import api from './api'
// URL for spells
const resource = "/variables" const resource = "/variables"
// CRUD methods for spells
export default { export default {
getVariables() { getVariables() {
return api.get(`${resource}`) return api.get(`${resource}`)

View File

@@ -30,7 +30,7 @@ export default {
}, },
methods: { methods: {
async fetchSchool(id) { async fetchSchool(id) {
const { data } = await Schools.getSchool(id) const { data } = await Schools.getOne(id)
return data return data
}, },
async computeSchool() { async computeSchool() {