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: