Created
March 27, 2018 02:26
-
-
Save duwaljyoti/0fd3654c6e388f5d16c0df8562f8c8dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// const RESOURCE_NOTE = 'api/notes'; | |
export default { | |
getAll({commit}) { | |
return axios.get(RESOURCE_NOTE) | |
.then((response) => { | |
commit('GET', response.data); | |
}) | |
.catch(); | |
}, | |
save({commit}, note) { | |
// function definition here | |
}, | |
// Other methods here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment