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

Commit 5db74fb

Browse files
committed
Merge pull request #210 from appirio-tech/feature/api-versioning-jwtinterceptor
fixing regex for api versioning
2 parents 20c658c + d7b5ecb commit 5db74fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/services/jwtInterceptor.service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
return null;
1919

2020
var haveItAddItEndpoints = [
21-
{ method: 'GET', url: '\/v3[\d.\-A-Za-z]*\/challenges'},
21+
{ method: 'GET', url: '\/v3[\\d\\.\\-A-Za-z]*\/challenges'},
2222
{ method: 'GET', url: '\/v2\/challenges'},
2323

2424
// matchs everything besides /v3/members/{handle}/financial
25-
{ method: 'GET', url: '\/v3[\d.\-A-Za-z]*\/members\/\\w+\/(?!financial)\\w*'}
25+
{ method: 'GET', url: '\/v3[\\d\\.\\-A-Za-z]*\/members\/\\w+\/(?!financial)\\w*'}
2626
];
2727

2828
for (var i = 0; i < haveItAddItEndpoints.length; i++) {

app/topcoder.constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
angular.module("CONSTANTS", [])
22

33
.constant("CONSTANTS", {
4-
"API_URL": "https://api.topcoder-dev.com/v3",
4+
"API_URL": "https://api.topcoder-qa.com/v3",
55
"API_URL_V2": "https://api.topcoder-dev.com/v2",
66
"ASSET_PREFIX": "",
77
"auth0Callback": "https://api.topcoder-dev.com/pub/callback.html",
@@ -31,4 +31,4 @@ angular.module("CONSTANTS", [])
3131
"BUSY_PROGRESS_MESSAGE": "Processing.."
3232
})
3333

34-
;
34+
;

0 commit comments

Comments
 (0)