Skip to content

Commit

Permalink
adapt to updated orders route name
Browse files Browse the repository at this point in the history
  • Loading branch information
grant-g committed Feb 5, 2016
1 parent 940b85b commit 684e7e0
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 @@ -4,8 +4,8 @@
$application = getenv("VCAP_APPLICATION");
$application_json = json_decode($application, true);
$applicationName = $application_json["name"];
$ordersAppName = str_replace("ui-", "order-api-", $applicationName);
$ordersAppName = str_replace("-ui", "-order-api", $ordersAppName);
$ordersAppName = str_replace("ui-", "orders-api-", $applicationName);
$ordersAppName = str_replace("-ui", "-orders-api", $ordersAppName);
$applicationURI = $application_json["application_uris"][0];
$ordersHost = substr_replace($applicationURI, $ordersAppName, 0, strlen($applicationName));
$ordersRoute = "http://" . $ordersHost;
Expand Down

0 comments on commit 684e7e0

Please sign in to comment.