This commit is contained in:
Murphy 2024-11-26 12:21:47 -05:00
parent f5841f8ebe
commit 499a9ea2c6
Signed by: freya
GPG key ID: 9FBC6FFD6D2DBF17

View file

@ -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()
};
}