mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 11:41:54 +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);
|
|
}
|
|
|
|
}
|
|
|
|
})(); |