Skip to content

Commit 2c9a424

Browse files
committed
putting trailing slash hack in until TC fixes the issue on the gateway/lb
1 parent 18cea35 commit 2c9a424

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lazybaer/topcoder-api-challenges",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Services_that_provide_access_and_interaction_with_all_sorts_of_challenges_including_design_dev_single_round_matches_and_marathon_matches_",
55
"license": "ISC",
66
"main": "src/index.js",

src/ApiClient.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* ap-challenge-microservice
3-
* Services that provide access and interaction with all sorts of challenges, including design, dev, single round matches, and marathon matches.
3+
* Services that provide access and interaction with all sorts of challenges, including design, dev, single round matches, and marathon matches.
44
*
55
* OpenAPI spec version: 1.0.5
6-
*
6+
*
77
*
88
* NOTE: This class is auto generated by the swagger code generator program.
99
* https://github.com/swagger-api/swagger-codegen.git
@@ -104,7 +104,7 @@
104104
if (!path.match(/^\//)) {
105105
path = '/' + path;
106106
}
107-
var url = this.basePath + path;
107+
var url = this.basePath + path + '/'; //CWD-- TODO: this is a total hack to accomodate for the TC API's trailing slash issue. This should be fixed by topcoderon the gateway/lb for the API
108108
var _this = this;
109109
url = url.replace(/\{([\w-]+)\}/g, function(fullMatch, key) {
110110
var value;

0 commit comments

Comments
 (0)