feat: 添加 JWT 支持与开发环境配置,更新 API 路由与中间件

This commit is contained in:
2026-05-08 14:41:01 +08:00
parent bbf58cb076
commit 9f8080cefe
18 changed files with 383 additions and 14 deletions

View File

@@ -7,7 +7,9 @@ use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* 后台 API:后续在此校验管理员登录(如 Sanctum RBAC
* 后台 API 守卫:后续在此注入 Sanctumadmin_users与权限校验
*
* 当前为占位直通,勿在生产暴露敏感 admin 路由前长期保持空实现。
*/
class EnsureAdminApi
{