route.php 857 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * This file is part of webman.
  4. *
  5. * Licensed under The MIT License
  6. * For full copyright and license information, please see the MIT-LICENSE.txt
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @author walkor<walkor@workerman.net>
  10. * @copyright walkor<walkor@workerman.net>
  11. * @link http://www.workerman.net/
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. use plugin\admin\app\controller\AccountController;
  15. use plugin\admin\app\controller\DictController;
  16. use Webman\Route;
  17. use support\Request;
  18. Route::any('/app/admin/account/captcha/{type}', [AccountController::class, 'captcha']);
  19. Route::any('/app/admin/dict/get/{name}', [DictController::class, 'get']);
  20. Route::fallback(function (Request $request) {
  21. return response($request->uri() . ' not found' , 404);
  22. }, 'admin');