mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +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;
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue