更新
This commit is contained in:
@@ -16,4 +16,11 @@ Route::rule('/', function(){
|
||||
}else{
|
||||
return view('index');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Route::group('/', function(){
|
||||
Route::rule('system/:controller/:action', 'system.:controller/:action');
|
||||
Route::rule('auth/user/:action', 'auth.User/:action');
|
||||
Route::rule('auth/department/:action', 'auth.Department/:action');
|
||||
Route::rule('auth/role/:action', 'auth.Role/:action');
|
||||
})->middleware([\app\middleware\Check::class], 'api');
|
||||
@@ -7,7 +7,6 @@
|
||||
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
use think\facade\Route;
|
||||
use app\controller\auth;
|
||||
|
||||
Route::group('auth', function(){
|
||||
Route::post('login', 'auth.Index/login');
|
||||
|
||||
Reference in New Issue
Block a user