- Moved api folder and added alias to avoid ../../../ memes, also deleted useless files

This commit is contained in:
Alexis
2020-06-16 15:31:38 +02:00
parent 82bbf9f7bb
commit df9e857343
14 changed files with 15 additions and 14 deletions

View File

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