This commit is contained in:
molong
2022-05-24 16:10:50 +08:00
parent a37870c93b
commit d8e43f9e93
63 changed files with 2169 additions and 230 deletions

View File

@@ -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');

View File

@@ -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');