mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-02 23:23:45 +01:00
26 lines
438 B
JavaScript
26 lines
438 B
JavaScript
|
(function() {
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
angular
|
||
|
.module('harbor.services.user')
|
||
|
.factory('SendMailService', SendMailService);
|
||
|
|
||
|
SendMailService.$inject = ['$http', '$log'];
|
||
|
|
||
|
function SendMailService($http, $log) {
|
||
|
|
||
|
return SendMail;
|
||
|
|
||
|
function SendMail(email) {
|
||
|
return $http
|
||
|
.get('/ng/sendEmail', {
|
||
|
'params': {
|
||
|
'email': email
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
})();
|