2021-11-30 18:04:41 -03:00
|
|
|
<?php
|
2022-06-13 21:36:52 -04:00
|
|
|
$app = include_once implode(DIRECTORY_SEPARATOR, [
|
2021-11-30 18:04:41 -03:00
|
|
|
dirname(__FILE__, 2),
|
|
|
|
'setup',
|
|
|
|
'app.php'
|
|
|
|
]);
|
2022-06-13 21:36:52 -04:00
|
|
|
try {
|
|
|
|
$app->run();
|
|
|
|
} catch (Error | Exception $e) {
|
|
|
|
error_log($e);
|
|
|
|
echo json_encode(['message' => 'There was an error', 'error' => $e->getMessage(), 'errorCode' => $e->getCode()]);
|
|
|
|
}
|