Skip to content

Commit

Permalink
- Adding the China region
Browse files Browse the repository at this point in the history
  • Loading branch information
Monroe, Josh authored and Monroe, Josh committed Feb 14, 2020
1 parent 1fa54e7 commit 24f8007
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions _bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,19 @@
}

// get regional url prefix
$prefix = 'test-';
$prefix = 'mtf.';
if (strcasecmp($region, "ASIA_PACIFIC") == 0) {
$prefix = 'ap-';
$prefix = 'ap.';
} else if (strcasecmp($region, "EUROPE") == 0) {
$prefix = 'eu-';
$prefix = 'eu.';
} else if (strcasecmp($region, "NORTH_AMERICA") == 0) {
$prefix = 'na-';
$prefix = 'na.';
} else if (strcasecmp($region, "INDIA") == 0) {
$prefix = 'in.';
} else if (strcasecmp($region, "CHINA") == 0) {
$prefix = 'cn.';
} else if (strcasecmp($region, "MTF") == 0) {
$prefix = 'test-';
$prefix = 'mtf.';
} else if (strcasecmp($region, "QA01") == 0) {
$prefix = 'qa01.';
} else {
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"GATEWAY_REGION": {
"required": true,
"description": "The Gateway region to target (options: ASIA_PACIFIC, EUROPE, NORTH_AMERICA, INDIA, MTF)",
"description": "The Gateway region to target (options: ASIA_PACIFIC, EUROPE, NORTH_AMERICA, INDIA, CHINA, MTF)",
"value": "MTF"
},
"GATEWAY_API_VERSION": {
Expand Down

0 comments on commit 24f8007

Please sign in to comment.