- Api client before I blow my brains out

This commit is contained in:
Alexis
2020-06-12 18:49:26 +02:00
parent f1602e5d95
commit d4674dd463
11 changed files with 213 additions and 32 deletions

View File

@@ -11,4 +11,10 @@ export default {
getSpell(id) {
return api.get(`${resource}/${id}`)
},
addSpell(data) {
return api.post(`${resource}`, data)
},
updateSpell(id, data) {
return api.put(`${resource}/${id}`, data)
}
}