mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-26 10:38:00 +01:00
22 lines
356 B
JavaScript
22 lines
356 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.project')
|
|
.factory('GetProjectById', GetProjectById);
|
|
|
|
GetProjectById.$inject = ['$http'];
|
|
|
|
function GetProjectById($http) {
|
|
|
|
return getProject;
|
|
|
|
function getProject(id) {
|
|
return $http
|
|
.get('/api/projects/' + id);
|
|
}
|
|
|
|
}
|
|
|
|
})(); |