Global: Add route /dev

This commit is contained in:
Ilya Prokopenko 2022-04-18 10:03:44 +03:00
parent d969e29621
commit f93445baa8
No known key found for this signature in database
GPG key ID: 7736BBBB05F14A56
2 changed files with 9 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -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: