mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-14 14:25:36 +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
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
})(); |