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

Commit d7b5ecb

Browse files
author
Parth Shah
committed
fixing regex for api versioning
1 parent 72414a9 commit d7b5ecb

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",
@@ -30,4 +30,4 @@ angular.module("CONSTANTS", [])
3030
"STATE_READY": "ready"
3131
})
3232

33-
;
33+
;

0 commit comments

Comments
 (0)