artistsService.js 475 B

12345678910111213141516
  1. app.factory("ArtistsService", function($http){
  2. return {
  3. getAllArtists: function(){
  4. return $http.get('https://autismify.davidventura.com.ar/back/artists/')
  5. .then(function(response){
  6. return response.data;
  7. });
  8. },
  9. getAllArtistsWithAlbums: function(){
  10. return $http.get('https://autismify.davidventura.com.ar/back/artists/albums')
  11. .then(function(response){
  12. return response.data;
  13. });
  14. }
  15. };
  16. });