temperatureService.js 439 B

12345678910111213
  1. angular.module("robware").service('temperatureService', ["$http", function($http) {
  2. this.getReadings = function() {
  3. return $http.get('/temperature/getreadings', {dontShowSpinner:true}).then(function(response) {
  4. return response.data;
  5. });
  6. };
  7. this.getCurrentTemperatureData = function() {
  8. return $http.get("/temperature/GetTemperatureData", {dontShowSpinner:true}).then(function(response) {
  9. return response.data;
  10. });
  11. }
  12. }]);