Route.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: chendeben
  5. * Date: 2018/6/20
  6. * Time: 下午2:26
  7. */
  8. namespace Heanup\App\Api\Config;
  9. use Heanup\Frame\Config;
  10. class Route extends Config
  11. {
  12. protected static $data = [
  13. [
  14. "name" => "分类",
  15. "pattern" => "/category/:s/index.html",//api/material/sort/beauty/pre
  16. "action" => "Heanup\App\Api\Controller\Category"
  17. ],[
  18. "name" => "分类",
  19. "pattern" => "/category/:s/page_:s.html",//api/material/sort/beauty/pre
  20. "action" => "Heanup\App\Api\Controller\Category"
  21. ], [
  22. "name" => "搜索",
  23. "pattern" => "/kw/:s/index.html",//api/material/sort/beauty/pre
  24. "action" => "Heanup\App\Api\Controller\Search"
  25. ],[
  26. "name" => "搜索",
  27. "pattern" => "/kw/:s/page_:s.html",//api/material/sort/beauty/pre
  28. "action" => "Heanup\App\Api\Controller\Category"
  29. ], [
  30. "name" => "详情页",
  31. "pattern" => "/product/:s.html",//api/material/sort/beauty/pre
  32. "action" => "Heanup\App\Api\Controller\Detail"
  33. ], [
  34. "name" => "专题页",
  35. "pattern" => "/pages/:s.html",//api/material/sort/beauty/pre
  36. "action" => "Heanup\App\Api\Controller\Pages"
  37. ],[
  38. 'name'=>'首页',
  39. "pattern" => "/page_:s.html",
  40. "action" => "Heanup\App\Api\Controller\Index"
  41. ]
  42. ];
  43. }