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