harbor/static/resources/js/services/project-member/services.current-project-member.js

20 lines
476 B
JavaScript
Raw Normal View History

2016-05-04 12:42:05 +02:00
(function() {
'use strict';
angular
.module('harbor.services.project.member')
.factory('CurrentProjectMemberService', CurrentProjectMemberService);
CurrentProjectMemberService.$inject = ['$http', '$log'];
function CurrentProjectMemberService($http, $log) {
return currentProjectMember;
function currentProjectMember(projectId) {
return $http
.get('/api/projects/' + projectId + '/members/current');
}
}
})();