2016-05-12 12:30:01 +02:00
|
|
|
(function() {
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular
|
|
|
|
.module('harbor.services.project')
|
|
|
|
.factory('StatProjectService', StatProjectService);
|
|
|
|
|
2016-05-26 06:29:49 +02:00
|
|
|
StatProjectService.$inject = ['$http', '$log'];
|
2016-05-12 12:30:01 +02:00
|
|
|
|
2016-05-26 06:29:49 +02:00
|
|
|
function StatProjectService($http, $log) {
|
|
|
|
|
|
|
|
return StatProject;
|
2016-05-12 12:30:01 +02:00
|
|
|
|
2016-05-26 06:29:49 +02:00
|
|
|
function StatProject() {
|
|
|
|
$log.info('statistics projects and repositories');
|
|
|
|
return $http
|
|
|
|
.get('/api/statistics');
|
2016-05-12 12:30:01 +02:00
|
|
|
}
|
2016-05-26 06:29:49 +02:00
|
|
|
|
2016-05-12 12:30:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
})();
|