Route.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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.html",//api/material/sort/beauty/pre
  24. "action" => "Heanup\App\Api\Controller\Search"
  25. ], [
  26. "name" => "详情页",
  27. "pattern" => "/product/:s.html",//api/material/sort/beauty/pre
  28. "action" => "Heanup\App\Api\Controller\Detail"
  29. ], [
  30. "name" => "专题页",
  31. "pattern" => "/pages/:s.html",//api/material/sort/beauty/pre
  32. "action" => "Heanup\App\Api\Controller\Pages"
  33. ]
  34. ];
  35. }