diff --git a/templates/js/services/apiService.js b/templates/js/services/apiService.js index b794224..e240375 100644 --- a/templates/js/services/apiService.js +++ b/templates/js/services/apiService.js @@ -22,6 +22,20 @@ service.factory('apiService', ['$http', function($http) { 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); }