mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 20:59:10 +01:00
26 lines
569 B
JavaScript
26 lines
569 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.log')
|
|
.factory('ListIntegratedLogService', ListIntegratedLogService);
|
|
|
|
ListIntegratedLogService.$inject = ['$http', '$log'];
|
|
|
|
function ListIntegratedLogService($http, $log) {
|
|
|
|
return listIntegratedLog;
|
|
|
|
function listIntegratedLog(lines) {
|
|
$log.info('Get recent logs of the projects which the user is a member of:');
|
|
return $http
|
|
.get('/api/logs', {
|
|
'params' : {
|
|
'lines': lines,
|
|
}
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
})(); |