mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Added a new route
This commit is contained in:
parent
6f24f6ee5e
commit
e5e2aeb9a3
2 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,12 @@ final class AboutPresenter extends OpenVKPresenter
|
|||
exit;
|
||||
}
|
||||
|
||||
if($_SERVER['REQUEST_URI'] == "/id0") {
|
||||
header("HTTP/1.1 302 Found");
|
||||
header("Location: /");
|
||||
exit;
|
||||
}
|
||||
|
||||
$this->template->stats = (new Users)->getStatistics();
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@ static: "static"
|
|||
routes:
|
||||
- url: "/"
|
||||
handler: "About->index"
|
||||
- url: "/id0"
|
||||
handler: "About->index"
|
||||
- url: "/terms"
|
||||
handler: "About->rules"
|
||||
- url: "/rpc"
|
||||
|
|
Loading…
Reference in a new issue