Merge branch 'feature/mzl_dev' into develop
# Conflicts: # app/functions.php # config/middleware.php
This commit is contained in:
@@ -12,8 +12,10 @@
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
|
||||
return [
|
||||
'' => [
|
||||
app\middleware\AccessControl::class
|
||||
],
|
||||
\app\middleware\AccessControl::class,
|
||||
\app\middleware\BasicData::class
|
||||
]
|
||||
];
|
||||
+8
-2
@@ -28,8 +28,14 @@ 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::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']);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'basi_cdata' => [
|
||||
'/',
|
||||
'/index/index',
|
||||
// '/index/view'
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user