Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
refactor: remove unused routes (#328)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Routes will no longer be available

Signed-off-by: Marie JONES <[email protected]>
  • Loading branch information
marie-j authored Aug 25, 2021
1 parent 2ecdfb1 commit 1e51f95
Show file tree
Hide file tree
Showing 28 changed files with 2 additions and 336 deletions.
6 changes: 0 additions & 6 deletions src/api/cdn/dedicated/cdn-dedicated.v6.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,4 @@ angular.module('ovh-api-services').service('OvhApiCdnDedicatedV6', ($resource, $
serviceType: 'aapi',
isArray: false,
},
swsGetAllBackends: {
method: 'GET',
url: '/sws/dedicated/cdn/:serviceName/backends',
serviceType: 'aapi',
isArray: false,
},
}));
16 changes: 2 additions & 14 deletions src/api/cloud/cloud.aapi.service.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
angular.module('ovh-api-services').service('OvhApiCloudAapi', ($resource, $cacheFactory) => {
const queryCache = $cacheFactory('OvhApiCloudAapiQuery');

const instancesResource = $resource('/cloud/instances', {}, {
query: {
method: 'GET',
isArray: true,
serviceType: 'aapi',
cache: queryCache,
},
angular.module('ovh-api-services').service('OvhApiCloudAapi', ($resource) => {
const instancesResource = $resource('/cloud/deals', {}, {
getDeals: {
method: 'GET',
url: '/cloud/deals',
serviceType: 'aapi',
},
});

instancesResource.resetQueryCache = function () {
queryCache.removeAll();
};

return instancesResource;
});

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions src/api/cloud/project/credit/cloud-project-credit.aapi.service.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/api/cloud/project/credit/cloud-project-credit.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ angular.module('ovh-api-services').service('OvhApiCloudProjectCredit', ($injecto
v6() {
return $injector.get('OvhApiCloudProjectCreditV6');
},
Aapi() {
return $injector.get('OvhApiCloudProjectCreditAapi');
},
resetCache() {
cache.v6.query.removeAll();
cache.v6.get.removeAll();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ angular.module('ovh-api-services').service('OvhApiCloudProjectInstance', ($injec
v6() {
return $injector.get('OvhApiCloudProjectInstanceV6');
},
Aapi() {
return $injector.get('OvhApiCloudProjectInstanceAapi');
},
Interface() {
return $injector.get('OvhApiCloudProjectInstanceInterface');
},
Expand Down
23 changes: 0 additions & 23 deletions src/api/cloud/project/kube/cloud-project-kube.aapi.service.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/api/cloud/project/kube/cloud-project-kube.service.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
angular.module('ovh-api-services').service('OvhApiCloudProjectKube', ($injector) => ({
Aapi() {
return $injector.get('OvhApiCloudProjectKubeAapi');
},
v6() {
return $injector.get('OvhApiCloudProjectKubeV6');
},
Expand Down
36 changes: 0 additions & 36 deletions src/api/dedicated/server/dedicated-server.aapi.service.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/api/dedicated/server/dedicated-server.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ angular.module('ovh-api-services').service('OvhApiDedicatedServer', ($injector)
v6() {
return $injector.get('OvhApiDedicatedServerV6');
},
Aapi() {
return $injector.get('OvhApiDedicatedServerAapi');
},
Ola() {
return $injector.get('OvhApiDedicatedServerOla');
},
Expand Down
8 changes: 0 additions & 8 deletions src/api/me/bill/me-bill.aapi.service.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/api/me/bill/me-bill.service.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
angular.module('ovh-api-services').service('OvhApiMeBill', ($injector) => ({
Aapi() {
return $injector.get('OvhApiMeBillAapi');
},
Iceberg() {
return $injector.get('OvhApiMeBillIceberg');
},
Expand Down
7 changes: 0 additions & 7 deletions src/api/me/feedback/me-feedback.aapi.service.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/api/portal/radar/portal-radar-server.aapi.service.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/api/portal/radar/portal-radar-server.service.js

This file was deleted.

23 changes: 0 additions & 23 deletions src/api/telecom/preferences/telecom-preferences.aapi.services.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/api/telecom/preferences/telecom-preferences.service.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/api/telecom/telecom.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@ angular.module('ovh-api-services').service('OvhApiTelecom', ($injector, $cacheFa
HomeDashboard() {
return $injector.get('OvhApiTelecomHomeDashboard');
},
Preferences() {
return $injector.get('OvhApiTelecomPreferences');
},
};
});
7 changes: 0 additions & 7 deletions src/api/telephony/number/telephony-number.aapi.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ angular.module('ovh-api-services').service('OvhApiTelephonyNumberAapi', ($resour
cache: OvhApiTelephonyNumber.cache,
serviceType: 'aapi',
},
all: {
method: 'GET',
url: '/telephony/numbers/all',
isArray: true,
cache: OvhApiTelephonyNumber.cache,
serviceType: 'aapi',
},
prices: {
method: 'GET',
url: '/telephony/:billingAccount/number/:country/prices',
Expand Down
17 changes: 0 additions & 17 deletions src/api/telephony/telephony.aapi.service.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
angular.module('ovh-api-services').service('OvhApiTelephonyAapi', ($resource) => $resource('/telephony', {}, {
query: {
method: 'GET',
serviceType: 'aapi',
isArray: true,
},
count: {
method: 'GET',
url: '/telephony/count',
serviceType: 'aapi',
isArray: false,
},
infra: {
method: 'GET',
url: '/telephony/infra/:billingAccount',
serviceType: 'aapi',
isArray: false,
},
aliasAll: {
method: 'GET',
url: '/telephony/alias/all',
serviceType: 'aapi',
isArray: true,
},
billingAccounts: {
method: 'GET',
url: '/telephony/all',
Expand Down
7 changes: 0 additions & 7 deletions src/api/vps/vps.aapi.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ angular.module('ovh-api-services').service('OvhApiVpsAapi', ($resource, $cacheFa

const vpsResource = $resource('/vps/:serviceName', {
serviceName: '@serviceName',
}, {
summary: {
url: '/vps/:serviceName/summary',
method: 'GET',
cache,
serviceType: 'aapi',
},
});

vpsResource.resetAllCache = function () {
Expand Down
25 changes: 0 additions & 25 deletions src/api/working-status/working-status.aapi.service.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/api/working-status/working-status.service.js

This file was deleted.

Loading

0 comments on commit 1e51f95

Please sign in to comment.