route.php 1.1 KB

12345678910111213141516171819202122
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CatchAdmin [Just Like ~ ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
  8. // +----------------------------------------------------------------------
  9. // | Author: JaguarJack [ njphper@gmail.com ]
  10. // +----------------------------------------------------------------------
  11. // you should use `$router`
  12. $router->group(function () use ($router){
  13. // ucProvince路由
  14. $router->resource('ucProvince', '\catchAdmin\citymanage\controller\UcProvince');
  15. // ucCity路由
  16. $router->resource('ucCity', '\catchAdmin\citymanage\controller\UcCity');
  17. // ucCity路由
  18. $router->resource('ucCity', '\catchAdmin\citymanage\controller\UcCity');
  19. // ucDistrict路由
  20. $router->resource('ucDistrict', '\catchAdmin\citymanage\controller\UcDistrict');
  21. })->middleware('auth');