Created
May 18, 2018 10:06
-
-
Save JakeDuke/0d21a2076be2b9cfd45833d122250c6b 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
let controller = { | |
axios: {}, | |
newArtist: function (artist) { | |
this.axios.post('/create', { | |
newArtist: artist | |
}) | |
.then((responce) => { | |
console.log(responce.data); | |
}) | |
.catch((error) => { | |
if(error) { | |
console.log(error); | |
} | |
}) | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment