mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 10:49:40 +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('ResourceControl', ['$resource', 'RESOURCE_CONTROL_ENDPOINT', function ResourceControlFactory($resource, RESOURCE_CONTROL_ENDPOINT) {
|
||||
.factory('ResourceControl', ['$resource', 'API_ENDPOINT_RESOURCE_CONTROLS', function ResourceControlFactory($resource, API_ENDPOINT_RESOURCE_CONTROLS) {
|
||||
'use strict';
|
||||
return $resource(RESOURCE_CONTROL_ENDPOINT + '/:id', {}, {
|
||||
return $resource(API_ENDPOINT_RESOURCE_CONTROLS + '/:id', {}, {
|
||||
create: { method: 'POST' },
|
||||
get: { method: 'GET', params: { id: '@id' } },
|
||||
update: { method: 'PUT', params: { id: '@id' } },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue