Skip to content

Commit

Permalink
-orders to -order-api
Browse files Browse the repository at this point in the history
  • Loading branch information
grant-g committed Feb 4, 2016
1 parent 662d415 commit 718ff1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions submitOrders.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
$application_json = json_decode($application, true);
$applicationName = $application_json["name"];
if (substr($applicationName, -3) === "-ui") { // if suffixed with "-ui", remove trailing "-ui"
$ordersAppName = substr($applicationName, 0, -3) . "-orders";
$ordersAppName = substr($applicationName, 0, -3) . "-order-api";
} else {
$ordersAppName = $applicationName . "-orders";
$ordersAppName = $applicationName . "-order-api";
}
$applicationURI = $application_json["application_uris"][0];
$ordersHost = substr_replace($applicationURI, $ordersAppName, 0, strlen($applicationName));
Expand Down

0 comments on commit 718ff1f

Please sign in to comment.