summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/router.php4
1 files changed, 2 insertions, 2 deletions
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()
};
}