Angularjs: Added new Service

sendValidationMail Service
This commit is contained in:
Sagi Dayan 2015-06-11 23:36:26 +03:00
parent 435bb5ef3d
commit ba15613417

View file

@ -22,6 +22,20 @@ service.factory('apiService', ['$http', function($http) {
url : url url : url
}; };
return $http(req);
},
sendValidationMail: function(token, email){
var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/validation/sendmail/" + token;
payload = {
email: email
};
req = {
method: "POST",
url: url,
data: payload
};
return $http(req); return $http(req);
} }