fix(contribution-service): 添加@Public装饰器到HealthController以绕过JWT认证
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
673e5ff772
commit
1b425e09c9
|
|
@ -2,6 +2,7 @@ import { Controller, Get } from '@nestjs/common';
|
|||
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
|
||||
import { PrismaService } from '../../infrastructure/persistence/prisma/prisma.service';
|
||||
import { RedisService } from '../../infrastructure/redis/redis.service';
|
||||
import { Public } from '../../shared/guards/jwt-auth.guard';
|
||||
|
||||
interface HealthStatus {
|
||||
status: 'healthy' | 'unhealthy';
|
||||
|
|
@ -12,6 +13,7 @@ interface HealthStatus {
|
|||
};
|
||||
}
|
||||
|
||||
@Public()
|
||||
@ApiTags('Health')
|
||||
@Controller('health')
|
||||
export class HealthController {
|
||||
|
|
|
|||
Loading…
Reference in New Issue