Created
September 12, 2016 16:29
-
-
Save unicodeveloper/be3c6681d45a2f2b7b532d703c2c5e42 to your computer and use it in GitHub Desktop.
Cloudinary Blog Post - Part 1
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
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