Merge branch 'master' of http://gitea.enheng.asia/risin9/course
This commit is contained in:
commit
bc85634508
@ -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,12 @@ use Webman\Route;
|
||||
// 默认路由
|
||||
Route::any('/', [\plugin\admin\app\controller\IndexController::class, 'index']);
|
||||
|
||||
//Route::any('/h5/student', [\app\h5\controller\IndexController::class, 'student']);
|
||||
//Route::any('/h5/teacher', [\app\h5\controller\IndexController::class, 'teacher']);
|
||||
Route::any('/h5/student', function (){
|
||||
return view('student/index');
|
||||
});
|
||||
Route::any('/h5/teacher', function (){
|
||||
return view('teacher/index');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user