2016-04-13 12:55:05 +02:00
|
|
|
(function() {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular
|
|
|
|
.module('harbor.services.project')
|
|
|
|
.factory('ListProjectService', ListProjectService);
|
|
|
|
|
|
|
|
ListProjectService.$inject = ['$http', '$log'];
|
|
|
|
|
|
|
|
function ListProjectService($http, $log) {
|
|
|
|
|
|
|
|
return ListProject;
|
|
|
|
|
2016-05-02 12:24:58 +02:00
|
|
|
function ListProject(projectName, isPublic) {
|
|
|
|
$log.info('list project projectName:' + projectName, ', isPublic:' + isPublic);
|
|
|
|
return $http
|
|
|
|
.get('/api/projects', {
|
|
|
|
'params' : {
|
|
|
|
'is_public': isPublic,
|
|
|
|
'project_name': projectName
|
|
|
|
}
|
|
|
|
});
|
2016-04-26 12:23:34 +02:00
|
|
|
|
2016-04-13 12:55:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
})();
|