fix(pending-actions): add @Public() decorator to AdminPendingActionController
Skip JWT auth for admin pending-actions endpoints since admin-web authenticates through a different mechanism (admin-service tokens). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ff038f31f9
commit
582e80b750
|
|
@ -21,6 +21,7 @@ import {
|
|||
JwtAuthGuard,
|
||||
CurrentUser,
|
||||
CurrentUserData,
|
||||
Public,
|
||||
} from '@/shared/guards/jwt-auth.guard';
|
||||
import {
|
||||
CreatePendingActionDto,
|
||||
|
|
@ -110,6 +111,7 @@ export class PendingActionController {
|
|||
|
||||
@ApiTags('用户待办操作 - 后台管理')
|
||||
@Controller('admin/pending-actions')
|
||||
@Public() // 管理后台通过 admin-service 验证身份,此处跳过 JWT 验证
|
||||
export class AdminPendingActionController {
|
||||
constructor(private readonly pendingActionService: PendingActionService) {}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue