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