json-api/shared/main.php
eraseyourknees c60cd67a21 0.2.2
2022-10-22 02:36:06 +02:00

14 lines
245 B
PHP

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