Browse Source

include factory retrieve json response for images

mk200789 11 năm trước cách đây
mục cha
commit
3611378433
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      angular/scripts/factories/instagramUserMediaFactory.js

+ 12 - 0
angular/scripts/factories/instagramUserMediaFactory.js

@@ -0,0 +1,12 @@
+'use strict';
+
+restApp.factory('instagramUserMediaFactory', function($http){
+	return {
+		get: function(){
+			return $http({
+				url: 'http://localhost:8000/hackathon/instagramUserMedia/',
+				method: 'GET',
+			});
+		}
+	};
+});