mirror of https://github.com/portainer/portainer
18 lines
553 B
JavaScript
18 lines
553 B
JavaScript
angular.module('portainer.app').factory('TeamMemberships', [
|
|
'$resource',
|
|
'API_ENDPOINT_TEAM_MEMBERSHIPS',
|
|
function TeamMembershipsFactory($resource, API_ENDPOINT_TEAM_MEMBERSHIPS) {
|
|
'use strict';
|
|
return $resource(
|
|
API_ENDPOINT_TEAM_MEMBERSHIPS + '/:id/:action',
|
|
{},
|
|
{
|
|
create: { method: 'POST', ignoreLoadingBar: true },
|
|
query: { method: 'GET', isArray: true },
|
|
update: { method: 'PUT', params: { id: '@id' } },
|
|
remove: { method: 'DELETE', params: { id: '@id' } },
|
|
}
|
|
);
|
|
},
|
|
]);
|