Skip to content

Instantly share code, notes, and snippets.

@unicodeveloper
Created September 12, 2016 16:29
Show Gist options
  • Save unicodeveloper/be3c6681d45a2f2b7b532d703c2c5e42 to your computer and use it in GitHub Desktop.
Save unicodeveloper/be3c6681d45a2f2b7b532d703c2c5e42 to your computer and use it in GitHub Desktop.
Cloudinary Blog Post - Part 1
app.factory('User', ['$http', function($http) {
return {
getProfile: function(){
return $http.get('/api/me');
},
updateProfile: function(profile){
return $http.put('/api/me', profile);
}
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment