From e5e2aeb9a3ec07cc7dfcc241e5aa60e7488c9778 Mon Sep 17 00:00:00 2001 From: dsrev Date: Mon, 13 Jul 2020 09:16:52 +0300 Subject: [PATCH] Added a new route --- Web/Presenters/AboutPresenter.php | 6 ++++++ Web/routes.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/Web/Presenters/AboutPresenter.php b/Web/Presenters/AboutPresenter.php index 1ff9c8ab..2830d2cd 100644 --- a/Web/Presenters/AboutPresenter.php +++ b/Web/Presenters/AboutPresenter.php @@ -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(); } diff --git a/Web/routes.yml b/Web/routes.yml index ca74dd44..3409ba1c 100644 --- a/Web/routes.yml +++ b/Web/routes.yml @@ -3,6 +3,8 @@ static: "static" routes: - url: "/" handler: "About->index" + - url: "/id0" + handler: "About->index" - url: "/terms" handler: "About->rules" - url: "/rpc"