mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-03 23:54:00 +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
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
})(); |