1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

feat(network): define a response handler for image deletion

This commit is contained in:
Anthony Lapenna 2016-09-01 12:20:19 +12:00
parent 2e9a117255
commit 6b8b562e7c
4 changed files with 42 additions and 11 deletions

View file

@ -135,7 +135,7 @@ angular.module('uifordocker.services', ['ngResource', 'ngSanitize'])
query: {method: 'GET', isArray: true},
get: {method: 'GET'},
create: {method: 'POST', params: {action: 'create'}},
remove: {method: 'DELETE'},
remove: { method: 'DELETE', transformResponse: deleteNetworkHandler },
connect: {method: 'POST', params: {action: 'connect'}},
disconnect: {method: 'POST', params: {action: 'disconnect'}}
});