당첨자 추첨 인증토큰 검증 삭제

This commit is contained in:
jhbkjh 2025-10-31 15:10:09 +09:00
parent 5cb0cf0f3c
commit 12d390b1c8

View File

@ -8,29 +8,19 @@ export async function POST(
) {
try {
const { eventId } = params;
const token = request.headers.get('Authorization');
const body = await request.json();
console.log('🎰 [Proxy] Draw winners request:', {
eventId,
hasToken: !!token,
timestamp: new Date().toISOString(),
});
if (!token) {
return NextResponse.json(
{ message: '인증 토큰이 필요합니다.' },
{ status: 401 }
);
}
const response = await fetch(
`${GATEWAY_HOST}/api/v1/participations/events/${eventId}/draw-winners`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: token,
},
body: JSON.stringify(body),
}