aleister/public/index.php
2024-08-25 01:50:52 +00:00

21 lines
395 B
PHP

<?php
namespace Aleister;
require_once __DIR__ . '/../aleister.php';
set_exception_handler(function(\Throwable $ex) {
\Sentry\captureException($ex);
ob_clean();
http_response_code(500);
header('Content-Type: text/plain; charset=utf-8');
if(CRW_DEBUG)
echo (string)$ex;
else
echo 'Internal Server Error';
exit;
});
$ctx->getRouter()->dispatch();