From c975a334bf6a8bd34b545eb1b88b0c210ac5ba0b Mon Sep 17 00:00:00 2001 From: Dai Date: Wed, 24 Jul 2024 11:35:25 +0800 Subject: [PATCH] h5 --- .gitignore | 1 + config/route.php | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 022a63c..ed8f6f5 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /tests/tmp /tests/.phpunit.result.cache /certificate/ +/public/h5/ diff --git a/config/route.php b/config/route.php index 0ea8822..6d7dfcf 100644 --- a/config/route.php +++ b/config/route.php @@ -17,11 +17,9 @@ use Webman\Route; // 默认路由 Route::any('/', [\plugin\admin\app\controller\IndexController::class, 'index']); -Route::any('/h5/student', function (){ - return view('student/index'); -}); -Route::any('/h5/teacher', function (){ - return view('teacher/index'); +Route::any('/h5', function (){ +// return view(public_path() . '/h5'); + return view('../../public/h5/index'); });