mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 11:41:54 +01:00
23 lines
481 B
JavaScript
23 lines
481 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.project')
|
|
.factory('AddProjectService', AddProjectService);
|
|
|
|
AddProjectService.$inject = ['$http', '$log'];
|
|
|
|
function AddProjectService($http, $log) {
|
|
|
|
return AddProject;
|
|
|
|
function AddProject(projectName, isPublic) {
|
|
return $http
|
|
.post('/api/projects', {
|
|
'project_name': projectName,
|
|
'public': isPublic
|
|
});
|
|
}
|
|
}
|
|
|
|
})(); |