json-api/shared/main.php
2019-09-14 18:49:41 +02:00

14 lines
245 B
PHP

<?php
$webApiVersion = '0.1.1';
function sendResponse($apiResponse) {
global $webApiVersion;
$response = [
'response' => $apiResponse,
'jsonApiVersion' => $webApiVersion,
];
echo json_encode($response)."\n";
}