mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 19:50:05 +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
|
|
}
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
})(); |