Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions traffic_portal/app/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ var trafficPortal = angular.module('trafficPortal', [
require('./modules/private/divisions/new').name,
require('./modules/private/divisions/regions').name,
require('./modules/private/endpoints').name,
require('./modules/private/endpoints/edit').name,
require('./modules/private/endpoints/list').name,
require('./modules/private/endpoints/new').name,
require('./modules/private/iso').name,
require('./modules/private/jobs').name,
require('./modules/private/jobs/list').name,
Expand Down Expand Up @@ -289,9 +287,6 @@ var trafficPortal = angular.module('trafficPortal', [
require('./common/modules/form/division').name,
require('./common/modules/form/division/edit').name,
require('./common/modules/form/division/new').name,
require('./common/modules/form/endpoint').name,
require('./common/modules/form/endpoint/edit').name,
require('./common/modules/form/endpoint/new').name,
require('./common/modules/form/federation').name,
require('./common/modules/form/federation/edit').name,
require('./common/modules/form/federation/new').name,
Expand Down
58 changes: 2 additions & 56 deletions traffic_portal/app/src/common/api/EndpointService.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

var EndpointService = function($http, ENV, locationUtils, messageModel) {
var EndpointService = function($http, ENV) {

this.getEndpoints = function(queryParams) {
return $http.get(ENV.api['root'] + 'api_capabilities', {params: queryParams}).then(
Expand All @@ -30,61 +30,7 @@ var EndpointService = function($http, ENV, locationUtils, messageModel) {
);
};

this.getEndpoint = function(id) {
return $http.get(ENV.api['root'] + 'api_capabilities', {params: {id: id}}).then(
function (result) {
return result.data.response[0];
},
function (err) {
throw err;
}
);
};

// todo: this functionality needs to be removed as the endpoint will be deprecated
this.createEndpoint = function(endpoint) {
return $http.post(ENV.api['root'] + 'api_capabilities', endpoint).then(
function(result) {
messageModel.setMessages([{level: 'success', text: 'Endpoint created'}], true);
locationUtils.navigateToPath('/endpoints');
return result;
},
function(err) {
messageModel.setMessages(err.data.alerts, false);
throw err;
}
);
};

// todo: this functionality needs to be removed as the endpoint will be deprecated
this.updateEndpoint = function(endpoint) {
return $http.put(ENV.api['root'] + 'api_capabilities/' + endpoint.id, endpoint).then(
function(result) {
messageModel.setMessages([{level: 'success', text: 'Endpoint updated'}], false);
return result;
},
function(err) {
messageModel.setMessages(err.data.alerts, false);
throw err;
}
);
};

// todo: this functionality needs to be removed as the endpoint will be deprecated
this.deleteEndpoint = function(id) {
return $http.delete(ENV.api['root'] + 'api_capabilities/' + id).then(
function(result) {
messageModel.setMessages([{level: 'success', text: 'Endpoint deleted'}], true);
return result;
},
function(err) {
messageModel.setMessages(err.data.alerts, true);
throw err;
}
);
};

};

EndpointService.$inject = ['$http', 'ENV', 'locationUtils', 'messageModel'];
EndpointService.$inject = ['$http', 'ENV'];
module.exports = EndpointService;

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions traffic_portal/app/src/common/modules/form/endpoint/edit/index.js

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions traffic_portal/app/src/common/modules/form/endpoint/index.js

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions traffic_portal/app/src/common/modules/form/endpoint/new/index.js

This file was deleted.

Loading