Added a new route

This commit is contained in:
dsrev 2020-07-13 09:16:52 +03:00
parent 6f24f6ee5e
commit e5e2aeb9a3
2 changed files with 8 additions and 0 deletions

View file

@ -16,6 +16,12 @@ final class AboutPresenter extends OpenVKPresenter
exit; exit;
} }
if($_SERVER['REQUEST_URI'] == "/id0") {
header("HTTP/1.1 302 Found");
header("Location: /");
exit;
}
$this->template->stats = (new Users)->getStatistics(); $this->template->stats = (new Users)->getStatistics();
} }

View file

@ -3,6 +3,8 @@ static: "static"
routes: routes:
- url: "/" - url: "/"
handler: "About->index" handler: "About->index"
- url: "/id0"
handler: "About->index"
- url: "/terms" - url: "/terms"
handler: "About->rules" handler: "About->rules"
- url: "/rpc" - url: "/rpc"