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