Angularjs: Added new Service
sendValidationMail Service
This commit is contained in:
parent
435bb5ef3d
commit
ba15613417
1 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue