diff --git a/public/index.php b/public/index.php index 19a6326..aa99e76 100644 --- a/public/index.php +++ b/public/index.php @@ -1,6 +1,9 @@ processRequest(); +try { + $controller = new RequestController(config: $config, requestMethod: $requestMethod, uri: $uri); + $controller->processRequest(); +} catch (Exception $e) { + echo json_encode(value: [ + 'error' => $e->getMessage() + ]); +} +