. */ define('APP_ROOT', __DIR__); define('APP_MODULE', 'api'); require APP_ROOT . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'Base.php'; //header('Content-type: application/json'); // //try { // $ApiRequest = new ApiRequest(); // exit($ApiRequest->runApi()); //} catch (Exception $e) { // Log::writeNewLog('API', $e->getMessage(), Log::ERROR); // exit($ApiRequest->formatJsonError($e)); //}