mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-02 23:23:45 +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
|
|
}
|
|
});
|
|
|
|
}
|
|
}
|
|
})(); |