This commit is contained in:
mzl
2025-07-09 17:58:30 +08:00
parent 4ddf4921b2
commit 396e92ac1b
22 changed files with 1120 additions and 1068 deletions
+3 -1
View File
@@ -12,8 +12,10 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
return [
'' => [
\app\middleware\BasicDataMiddleware::class
\app\middleware\AccessControl::class,
\app\middleware\BasicData::class
]
];
+8 -3
View File
@@ -28,8 +28,13 @@ use Webman\Route;
Route::group('/common', function () {
Route::group('/auth', function () {
Route::post('/login', [app\common\controller\AuthController::class, 'login']);
Route::post('/register', [app\common\controller\AuthController::class, 'register']);
Route::post('/feishu/scope', [app\common\controller\AuthController::class, 'feishuScope']);
Route::any('/login', [app\common\controller\AuthController::class, 'login']);
Route::any('/register', [app\common\controller\AuthController::class, 'register']);
Route::any('/feishu/scope', [app\common\controller\AuthController::class, 'feishuScope']);
// 调试
Route::any('/feishu/auth', [app\common\controller\AuthController::class, 'feishuAuth']);
});
});
+9
View File
@@ -0,0 +1,9 @@
<?php
return [
'basi_cdata' => [
'/',
'/index/index',
// '/index/view'
]
];