h5路由
This commit is contained in:
parent
88bed475fb
commit
81b9994dc7
@ -1,20 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace app\h5\controller;
|
|
||||||
|
|
||||||
use support\Request;
|
|
||||||
|
|
||||||
class IndexController
|
|
||||||
{
|
|
||||||
|
|
||||||
public function student(Request $request)
|
|
||||||
{
|
|
||||||
return view('student/index');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function teacher(Request $request)
|
|
||||||
{
|
|
||||||
return view('teacher/index');
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -17,8 +17,14 @@ use Webman\Route;
|
|||||||
// 默认路由
|
// 默认路由
|
||||||
Route::any('/', [\plugin\admin\app\controller\IndexController::class, 'index']);
|
Route::any('/', [\plugin\admin\app\controller\IndexController::class, 'index']);
|
||||||
|
|
||||||
//Route::any('/h5/student', [\app\h5\controller\IndexController::class, 'student']);
|
Route::any('/h5/student', function (){
|
||||||
//Route::any('/h5/teacher', [\app\h5\controller\IndexController::class, 'teacher']);
|
return view('student/index');
|
||||||
|
});
|
||||||
|
Route::any('/h5/teacher', function (){
|
||||||
|
Route::any('/h5/teacher', function (){
|
||||||
|
return view('teacher/index');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user