- Api client before I blow my brains out
This commit is contained in:
14
client/api/ingredientsRepository.js
Normal file
14
client/api/ingredientsRepository.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import api from './api'
|
||||
|
||||
// URL for spells
|
||||
const resource = "/ingredients"
|
||||
|
||||
// CRUD methods for spells
|
||||
export default {
|
||||
getIngredients() {
|
||||
return api.get(`${resource}`)
|
||||
},
|
||||
getIngredient(id) {
|
||||
return api.get(`${resource}/${id}`)
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user