Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 15abbda

Browse files
author
vikasrohit
committedOct 15, 2015
SUP-1447, Peer Review Updates
-- Removed using v2 tokens for the review end points.
1 parent eb979d5 commit 15abbda

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎app/services/jwtInterceptor.service.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@
2525
{ method: 'GET', url: '\/v3[\\d\\.\\-A-Za-z]*\/members\/\\w+\/(?!financial)\\w*'}
2626
];
2727
// list here all endpoints which are v3 but require v2 token for backward compatability
28-
var v3EndpointsWithV2Token = [
29-
{ method: 'GET', url: '\/v3\/reviews'},
30-
{ method: 'GET', url: '\/v3\/scorecards'},
31-
{ method: 'GET', url: '\/v3\/scorecardQuestions'},
32-
{ method: 'GET', url: '\/v3\/reviewItems'}
33-
];
28+
var v3EndpointsWithV2Token = [];
3429

3530
for (var i = 0; i < haveItAddItEndpoints.length; i++) {
3631
var obj = haveItAddItEndpoints[i];
@@ -68,7 +63,6 @@
6863

6964
for (var i = 0; i < v3EndpointsWithV2Token.length; i++) {;
7065
var ep = v3EndpointsWithV2Token[i];
71-
console.log(config.url);
7266
if (config.url.indexOf(ep.url) > -1) {
7367
idToken = AuthTokenService.getV2Token();
7468
}

0 commit comments

Comments
 (0)
This repository has been archived.