Skip to content

Instantly share code, notes, and snippets.

@duwaljyoti
Created March 27, 2018 02:26
Show Gist options
  • Save duwaljyoti/0fd3654c6e388f5d16c0df8562f8c8dc to your computer and use it in GitHub Desktop.
Save duwaljyoti/0fd3654c6e388f5d16c0df8562f8c8dc to your computer and use it in GitHub Desktop.
// 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