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

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