From 0498c3e1bbe03c292bd5f93bdaf9862806c6ffdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=96=E5=8F=AB?= <392494244@qq.com> Date: Fri, 8 Dec 2023 16:13:36 +0800 Subject: [PATCH] 1 --- route/app.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/route/app.php b/route/app.php index a084341..3a46506 100755 --- a/route/app.php +++ b/route/app.php @@ -16,3 +16,6 @@ Route::get('think', function () { Route::get('hello/:name', 'index/hello'); +Route::rule('h5/:any', function () { + return view(app()->getRootPath() . 'public/h5/index.html'); +})->pattern(['any' => '\w+']); \ No newline at end of file