route.php 865 B

123456789101112131415161718
  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. // email路由
  14. $router->resource('email', '\catchAdmin\email\controller\Email');
  15. })->middleware('auth');
  16. $router->get("test", '\catchAdmin\email\controller\email@setEmail');