Explorar o código

Implemented factory for getting top contributed data from Django JSON Response

David Leonard %!s(int64=10) %!d(string=hai) anos
pai
achega
b751c37a60
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      angular/scripts/factories/githubTopContributionsFactory.js

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

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