From f93445baa8d815f1958c573dd4b3a87574364ec3 Mon Sep 17 00:00:00 2001 From: Ilya Prokopenko Date: Mon, 18 Apr 2022 10:03:44 +0300 Subject: [PATCH] Global: Add route /dev --- Web/Presenters/AboutPresenter.php | 7 +++++++ Web/routes.yml | 2 ++ 2 files changed, 9 insertions(+) diff --git a/Web/Presenters/AboutPresenter.php b/Web/Presenters/AboutPresenter.php index e7351897..cf4572b8 100644 --- a/Web/Presenters/AboutPresenter.php +++ b/Web/Presenters/AboutPresenter.php @@ -126,4 +126,11 @@ final class AboutPresenter extends OpenVKPresenter header("Location: https://github.com/openvk/openvk#readme"); exit; } + + function renderDev(): void + { + header("HTTP/1.1 302 Found"); + header("Location: https://docs.openvk.su/"); + exit; + } } diff --git a/Web/routes.yml b/Web/routes.yml index 75870591..d89ce2d5 100644 --- a/Web/routes.yml +++ b/Web/routes.yml @@ -297,6 +297,8 @@ routes: handler: "About->robotsTxt" - url: "/humans.txt" handler: "About->humansTxt" + - url: "/dev" + handler: "About->dev" - url: "/{?shortCode}" handler: "UnknownTextRouteStrategy->delegate" placeholders: