From 499a9ea2c68ab5e650eaa77b90256e67cd13e967 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 26 Nov 2024 12:21:47 -0500 Subject: fix 404 --- src/web/router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web/router.php') diff --git a/src/web/router.php b/src/web/router.php index 57b69c0..56f4156 100644 --- a/src/web/router.php +++ b/src/web/router.php @@ -178,7 +178,7 @@ class Router { private function page_not_found(): void { http_response_code(404); - $this->send_message('404', 'Not Found'); + $this->send_message('Not Found', '404'); } public function handle(): void { @@ -187,7 +187,7 @@ class Router { ['GET', '/login'] => $this->page_login(), ['POST', '/login'] => $this->handle_login(), ['GET', '/logout'] => $this->handle_logout(), - _ => $this->page_not_found() + default => $this->page_not_found() }; } -- cgit v1.2.3-freya