初始化
缺陷:主题配色需要优化整体的同风格
This commit is contained in:
@@ -21,6 +21,12 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
$middleware->api(append: [
|
||||
\App\Http\Middleware\ApiOpLogMiddleware::class,
|
||||
]);
|
||||
// 登录态 + 接口级权限,只挂在 routes/api.php 的登录组上
|
||||
$middleware->alias([
|
||||
'nl.auth' => \App\Http\Middleware\ApiAuthMiddleware::class,
|
||||
// 小程序登录态,只挂在 wx 路由组上(与后台 token 互不通用)
|
||||
'nl.wx' => \App\Http\Middleware\WxAuthMiddleware::class,
|
||||
]);
|
||||
})
|
||||
->withExceptions(function (Exceptions $exceptions) {
|
||||
$exceptions->render(function (Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user