mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 02:28:06 +01:00
22 lines
456 B
JavaScript
22 lines
456 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.project')
|
|
.factory('EditProjectService', EditProjectService);
|
|
|
|
EditProjectService.$inject = ['$http', '$log'];
|
|
|
|
function EditProjectService($http, $log) {
|
|
|
|
return EditProject;
|
|
|
|
function EditProject(projectId, isPublic) {
|
|
return $http
|
|
.put('/api/projects/' + projectId, {
|
|
'public': isPublic
|
|
});
|
|
}
|
|
}
|
|
|
|
})(); |