From d608a990b689c236723379199a14e19be9572b82 Mon Sep 17 00:00:00 2001 From: Kilian Hofmann Date: Sat, 20 Jul 2024 14:07:00 +0200 Subject: [PATCH] Start of proj --- exam/routes/routes.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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