Skip to content

Commit 2f5f997

Browse files
committed
fix: apis 경로 및 테스트용 로그 추가
1 parent 0aed69a commit 2f5f997

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

FE/app/api/proxy/[[...path]]/route.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ async function handler(req: Request, { params }: any) {
1818
path = path.replace(/^api\//, '');
1919

2020
const url = new URL(req.url);
21-
const targetUrl = `${SPRING_API}/api/${path}${url.search}`;
21+
console.log('[proxy] accessToken:', session.accessToken?.slice(0, 20));
22+
const targetUrl = path.startsWith('apis/')
23+
? `${SPRING_API}/${path}${url.search}`
24+
: `${SPRING_API}/api/${path}${url.search}`;
2225

2326
const body =
2427
req.method === 'GET' || req.method === 'HEAD'

0 commit comments

Comments
 (0)