hunk.code_window:     }, function error(err) {
         Messages.error("Failure", err, 'Unable to retrieve application settings');
       });
       $rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {
         Analytics.trackPage(toState.url);
         Analytics.pageView();
       });
       $rootScope.$state = $state;
     }])
     // This is your docker url that the api will use to make requests
     // You need to set this to the api endpoint without the port i.e. http://192.168.1.9
     .constant('DOCKER_PORT', '') // Docker port, leave as an empty string if no port is required.  If you have a port, prefix it with a ':' i.e. :4243
  
hunk.labels: keep keep keep keep replace replace replace replace replace keep keep keep keep keep
hunk.file_path: app/app.js
hunk.type: replace
file: angular.module('portainer.rest')
  .factory('Node', ['$resource', 'Settings', function NodeFactory($resource, Settings) {
    'use strict';
    return $resource(Settings.url + '/nodes/:id/:action', {}, {
      query: {method: 'GET', isArray: true},
      get: {method: 'GET', params: {id: '@id'}},
      update: { method: 'POST', params: {id: '@id', action: 'update', version: '@version'} },
      remove: { method: 'DELETE', params: {id: '@id'} }
    });
  }]);
  