harbor/static/ng/resources/js/services/project/services.edit-project.js

22 lines
456 B
JavaScript
Raw Normal View History

2016-05-01 19:46:50 +02:00
(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
});
}
}
})();