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