fix(contribution-service): 添加@Public装饰器到HealthController以绕过JWT认证

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-11 07:02:17 -08:00
parent 673e5ff772
commit 1b425e09c9
1 changed files with 2 additions and 0 deletions

View File

@ -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 {