Re-implement existing website template (from PHP). Add all assets.
This commit is contained in:
parent
a87a334bc7
commit
ddf6c5b8ce
60 changed files with 2514 additions and 87 deletions
31
Website/wwwroot/js/services/weightService.js
Normal file
31
Website/wwwroot/js/services/weightService.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
angular.module("robware").service('weightService', ["$http", function($http) {
|
||||
this.addWeight=function(weight, fat){
|
||||
return $http({
|
||||
method:'post',
|
||||
url:'/weight/add',
|
||||
data:{weight:weight, fat:fat},
|
||||
showSpinner:true
|
||||
}).then(function(response){
|
||||
return response.data;
|
||||
});
|
||||
};
|
||||
this.deleteWeight=function(id){
|
||||
return $http({
|
||||
method:'post',
|
||||
url:'/weight/delete',
|
||||
data:{id:id},
|
||||
showSpinner:true
|
||||
}).then(function(response){
|
||||
return response.data;
|
||||
});
|
||||
};
|
||||
this.getReadings=function(){
|
||||
return $http({
|
||||
method:'post',
|
||||
url:'/weight/getreadings',
|
||||
showSpinner:true
|
||||
}).then(function(response){
|
||||
return response.data;
|
||||
});
|
||||
};
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue