Start of proj
This commit is contained in:
parent
066251b3a7
commit
d608a990b6
@ -2,7 +2,7 @@
|
|||||||
// Namespaces
|
// Namespaces
|
||||||
use Pecee\SimpleRouter\SimpleRouter;
|
use Pecee\SimpleRouter\SimpleRouter;
|
||||||
use Pecee\Http\Request;
|
use Pecee\Http\Request;
|
||||||
/*
|
// Error handling redirects
|
||||||
SimpleRouter::error(function (Request $request, \Exception $exception) {
|
SimpleRouter::error(function (Request $request, \Exception $exception) {
|
||||||
switch ($exception->getCode()) {
|
switch ($exception->getCode()) {
|
||||||
// Page not found
|
// Page not found
|
||||||
@ -10,7 +10,6 @@ SimpleRouter::error(function (Request $request, \Exception $exception) {
|
|||||||
redirect('/phpCourse/exam/not-found', 404);
|
redirect('/phpCourse/exam/not-found', 404);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
//404
|
//404
|
||||||
SimpleRouter::get('/not-found', [Pages\NotFound\NotFound::class, "render"]);
|
SimpleRouter::get('/not-found', [Pages\NotFound\NotFound::class, "render"]);
|
||||||
//Index
|
//Index
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user