This commit is contained in:
test_service 2023-12-08 16:19:26 +08:00
commit d4f38d15f2

View File

@ -10,11 +10,11 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
use think\facade\Route; use think\facade\Route;
Route::get('think', function () { //Route::get('think', function () {
return 'hello,ThinkPHP6!'; // return 'hello,ThinkPHP6!';
}); //});
//
Route::get('hello/:name', 'index/hello'); //Route::get('hello/:name', 'index/hello');
Route::rule('h5/:any', function () { Route::rule('h5/:any', function () {
return view(app()->getRootPath() . 'public/h5/index.html'); return view(app()->getRootPath() . 'public/h5/index.html');