Start of proj

This commit is contained in:
Kilian Hofmann 2024-07-20 14:07:00 +02:00
parent 066251b3a7
commit d608a990b6

View File

@ -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