mirror of
https://github.com/ktds-dg0501/kt-event-marketing-fe.git
synced 2025-12-06 18:46:24 +00:00
당첨자 추첨 인증토큰 검증 삭제
This commit is contained in:
parent
5cb0cf0f3c
commit
12d390b1c8
@ -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),
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user