routes.php 2.1 KB

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