- 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'
// URL for spells
const resource = "/ingredients"
// CRUD methods for spells
export default {
getIngredients() {
return api.get(`${resource}`)

View File

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

View File

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

View File

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

View File

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

View File

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