harbor/static/resources/js/services/project/services.get-project-by-id.js

22 lines
356 B
JavaScript
Raw Normal View History

(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);
}
}
})();