mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Global: Add route /dev
This commit is contained in:
parent
d969e29621
commit
f93445baa8
2 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue