route.php 1.0 KB

1234567891011121314151617181920
  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. // synscheme路由
  14. $router->resource('synscheme', '\catchAdmin\synscheme\controller\Synscheme');
  15. //获取方案
  16. $router->get('synlist', '\catchAdmin\synscheme\controller\Synscheme@getSynscheme');
  17. //选择同步方案
  18. $router->get("synschemetype",'\catchAdmin\synscheme\controller\Synscheme@chooseSynscheme');
  19. })->middleware('auth');