fix 404
This commit is contained in:
parent
f5841f8ebe
commit
499a9ea2c6
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue