routes.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. return [
  3. "/" => "site/index",
  4. "news" => "news/index",
  5. "news/clike" => "news/clike",
  6. "articles/kresla" => ['route'=>'news/view', 'pattern' => 'articles/kresla/?', 'defaults' => ['id' => 64867]],
  7. "/articles/"=> "articles/index",
  8. "/articles"=> "articles/index",
  9. "podcasts"=> "podcasts/index",
  10. "video"=> "video/index",
  11. "talk"=> "video/index",
  12. "search" => "search/index",
  13. "/inquirer/"=>"inquirer/index",
  14. "/inquirer"=>"inquirer/index",
  15. "/photo/?"=>"report-topic/index",
  16. "<action>"=> "site/<action>",
  17. "/news/infinity-newsfeed"=>"news/infinity-newsfeed",
  18. "/news/<id:\d+>/?"=>"news/view",
  19. "/voprosdnya/<id:\d+>/?"=>"news/view",
  20. "/news/preview/<uid:[a-z0-9\-]+>"=>"news/uid-view",
  21. "/news/<storyslug:[a-z0-9\-]+>-<id:(\d+)$>"=>"news/view",
  22. 'news/<topic:[a-zA-Z0-9\-_]+>'=>"news/index",
  23. "/<storyslug:[a-z0-9\-]+><id:\d+>"=>"news/view",
  24. "/amp/news/<id:\d+>/?"=>"amp/news",
  25. "/podcasts/<topic:[a-z0-9\-_]+>"=>"podcasts/topic",
  26. "/podcasts/<topic:[a-z0-9\-_]+/>"=>"podcasts/topic",
  27. "/podcasts/<topic:[a-z0-9\-_]+>/<storyslug:[a-z0-9\-_]+>"=>"news/storyslug-view",
  28. "/podcasts/<id:\d+>/?"=>"news/view",
  29. "/video/<topic:[a-z0-9\-_]+>"=>"video/topic",
  30. "/video/<topic:[a-z0-9\-_]+/>"=>"video/topic",
  31. "/video/<topic:[a-z0-9\-_]+>/<storyslug:[a-z0-9\-_]+>"=>"news/storyslug-view",
  32. "/video/<id:\d+>/?"=>"news/view",
  33. "/news/<rubric>/<storyslug:[a-z0-9\-]+><id:\d{6,}>"=>"news/view",
  34. //Далее поддержа урлов по слагу
  35. "/news/<storyslug:[a-z0-9\-]+>"=>"news/storyslug-view",
  36. "/news/<rubric>/<storyslug:[a-z0-9\-]+>/?"=>"news/storyslug-view",
  37. "/story/search"=>"news/ssearch",
  38. "/story/<topic:[[a-zA-Z0-9\-_]+>"=>"news/story",
  39. "/story/<topic:[[a-zA-Z0-9\-_]+>/?"=>"news/story",
  40. "/tags/search"=>"tags/search",
  41. "/tags/<topic:[[a-zA-Z0-9\-_]+>"=>"tags/topic",
  42. "/person/Ajaxlist"=>"manager/person/ajaxlist",
  43. "/person/<person:[[a-zA-Z0-9\-_]+>"=>"person/person",
  44. "/author/<author:[[a-zA-Z0-9\-_]+>"=>"author/view",
  45. "/reactionbuttons/get"=>"reaction-buttons/get",
  46. "/reactionbuttons/ajax"=>"reaction-buttons/ajax",
  47. "/photo/<topic:\d+>/?"=>"report-topic/view",
  48. "/photo/widget/<topic:\d+>/?"=>"report-topic/widget",
  49. "/inquirer/<id:[0-9]+>"=>"inquirer/view",
  50. "/polls/widget/<id:[0-9]+>/?"=>"inquirer/widget",
  51. "inquirer"=>"inquirer/viewold",
  52. "/interview/?"=>"video/index",
  53. ];