- Fixed an API call

This commit is contained in:
Alexis
2020-06-29 16:02:14 +02:00
parent 4e04014b32
commit 60c179f357

View File

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