Use correct API url variable

This commit is contained in:
Björn Fromme
2019-10-02 16:20:34 +02:00
parent 9ab5426683
commit 97294ca243
2 changed files with 2 additions and 2 deletions
@@ -75,7 +75,7 @@ class BookingApiService implements SingletonInterface, LoggerAwareInterface
$client = HttpClient::create();
try {
$client->request('POST', $this->apiEndpointUrl, [
$client->request('POST', $this->apiEndpointUrl . '/api/contactform', [
'headers' => [
'X-AUTH-TOKEN' => $this->apiToken,
'Content-type' => 'application/json',
@@ -1,7 +1,7 @@
<script type="application/json" id="appconfig">
{
"loaderUrl": "<f:format.raw>{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/ajax-loader-white.gif', absolute: 1)}</f:format.raw>",
"myEpApiBaseUrl": "<f:format.raw>{settings.myEpApiBaseUrl}</f:format.raw>",
"myEpApiBaseUrl": "<f:format.raw>{settings.myEpApiEndpointUrl}</f:format.raw>",
"paCode": <f:if condition='{context.paCode}'><f:then>"{context.paCode}"</f:then><f:else>null</f:else></f:if>,
"externalDomains": {settings.domainsToTrack -> v:iterator.explode() -> f:format.json() -> f:format.raw()}
}