Re-implement existing website template (from PHP). Add all assets.

This commit is contained in:
Robert Marshall 2019-04-27 21:24:52 +01:00
parent a87a334bc7
commit ddf6c5b8ce
60 changed files with 2514 additions and 87 deletions

View 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;
});
};
}]);