Selaa lähdekoodia

Adding factory for querying steam sales JSON response from Django

David Leonard 10 vuotta sitten
vanhempi
commit
4531639162
1 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  1. 12 0
      angular/scripts/factories/steamSalesFactory.js

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

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