Sfoglia il codice sorgente

Implemented factory for getting top contributed data from Django JSON Response

David Leonard 10 anni fa
parent
commit
b751c37a60
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  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',
+            });
+        }
+    };
+});