- Reworded api calls

This commit is contained in:
Alexis
2020-07-02 23:05:21 +02:00
parent 293451288d
commit 9abf084530
3 changed files with 6 additions and 6 deletions

View File

@@ -3,10 +3,10 @@ import api from './api'
const resource = "/ingredients"
export default {
getIngredients() {
getAll() {
return api.get(`${resource}`)
},
getIngredient(id) {
getOne(id) {
return api.get(`${resource}/${id}`)
},
}

View File

@@ -3,10 +3,10 @@ import api from './api'
const resource = "/meta_schools"
export default {
getMetaSchools() {
getAll() {
return api.get(`${resource}`)
},
getMetaSchool(id) {
getOne(id) {
return api.get(`${resource}/${id}`)
},
}

View File

@@ -3,10 +3,10 @@ import api from './api'
const resource = "/variables"
export default {
getVariables() {
getAll() {
return api.get(`${resource}`)
},
getVariable(id) {
getOne(id) {
return api.get(`${resource}/${id}`)
},
}