2019-09-14 17:38:35 +02:00
|
|
|
<?php
|
2021-02-06 14:30:55 +01:00
|
|
|
$webApiVersion = '0.2.1';
|
2019-09-14 17:38:35 +02:00
|
|
|
|
|
|
|
function sendResponse($apiResponse) {
|
|
|
|
global $webApiVersion;
|
|
|
|
|
|
|
|
$response = [
|
|
|
|
'response' => $apiResponse,
|
|
|
|
'jsonApiVersion' => $webApiVersion,
|
|
|
|
];
|
|
|
|
|
2019-09-14 18:49:41 +02:00
|
|
|
echo json_encode($response)."\n";
|
2019-09-14 17:38:35 +02:00
|
|
|
}
|