diff --git a/index.php b/index.php index 78ee2dd..791649b 100644 --- a/index.php +++ b/index.php @@ -38,7 +38,7 @@ $frontController = new FrontController($container); $jsonController = new JsonController($container); $downloadController = new DownloadController($container); -$container['errorHandler'] = [$jsonController, 'error']; +$container['errorHandler'] = [$frontController, 'error']; $app->get( '/',