mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 13:25:26 +02:00
refactor(api): relocate /docker API endpoint under /endpoints (#1053)
This commit is contained in:
parent
53583741ba
commit
02203e7ce5
29 changed files with 70 additions and 70 deletions
|
@ -1,7 +1,7 @@
|
|||
angular.module('portainer.rest')
|
||||
.factory('TeamMemberships', ['$resource', 'TEAM_MEMBERSHIPS_ENDPOINT', function TeamMembershipsFactory($resource, TEAM_MEMBERSHIPS_ENDPOINT) {
|
||||
.factory('TeamMemberships', ['$resource', 'API_ENDPOINT_TEAM_MEMBERSHIPS', function TeamMembershipsFactory($resource, API_ENDPOINT_TEAM_MEMBERSHIPS) {
|
||||
'use strict';
|
||||
return $resource(TEAM_MEMBERSHIPS_ENDPOINT + '/:id/:action', {}, {
|
||||
return $resource(API_ENDPOINT_TEAM_MEMBERSHIPS + '/:id/:action', {}, {
|
||||
create: { method: 'POST' },
|
||||
query: { method: 'GET', isArray: true },
|
||||
update: { method: 'PUT', params: { id: '@id' } },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue