mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 18:48:02 +01:00
26 lines
435 B
JavaScript
26 lines
435 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('/sendEmail', {
|
|
'params': {
|
|
'email': email
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
})(); |