Initial commit
This commit is contained in:
13
shared/main.php
Normal file
13
shared/main.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
$webApiVersion = '0.1.0';
|
||||
|
||||
function sendResponse($apiResponse) {
|
||||
global $webApiVersion;
|
||||
|
||||
$response = [
|
||||
'response' => $apiResponse,
|
||||
'jsonApiVersion' => $webApiVersion,
|
||||
];
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
Reference in New Issue
Block a user