mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 18:48:02 +01:00
26 lines
604 B
JavaScript
26 lines
604 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.project')
|
|
.factory('ListProjectService', ListProjectService);
|
|
|
|
ListProjectService.$inject = ['$http', '$log'];
|
|
|
|
function ListProjectService($http, $log) {
|
|
|
|
return ListProject;
|
|
|
|
function ListProject(projectName, isPublic) {
|
|
$log.info('list project projectName:' + projectName, ', isPublic:' + isPublic);
|
|
return $http
|
|
.get('/api/projects', {
|
|
'params' : {
|
|
'is_public': isPublic,
|
|
'project_name': projectName
|
|
}
|
|
});
|
|
|
|
}
|
|
}
|
|
})(); |