diff --git a/exam/routes/routes.php b/exam/routes/routes.php index e686029..1e83cfd 100644 --- a/exam/routes/routes.php +++ b/exam/routes/routes.php @@ -2,7 +2,7 @@ // Namespaces use Pecee\SimpleRouter\SimpleRouter; use Pecee\Http\Request; -/* +// Error handling redirects SimpleRouter::error(function (Request $request, \Exception $exception) { switch ($exception->getCode()) { // Page not found @@ -10,7 +10,6 @@ SimpleRouter::error(function (Request $request, \Exception $exception) { redirect('/phpCourse/exam/not-found', 404); } }); -*/ //404 SimpleRouter::get('/not-found', [Pages\NotFound\NotFound::class, "render"]); //Index