Skip to content

Commit fb984d3

Browse files
committed
fix(url): fix url
1 parent 22354fe commit fb984d3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
VITE_API_URL = http://mindscape.r53-kjh.shop
2+
VITE_CONTENT_API_URL = http://mindscape.r53-kjh.shop/api
3+
VITE_INFO_SERVER_API_URL = http://mindscape.r53-kjh.shop/api

src/lib/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export const contentAPI = {
332332
//테스트 결과 조회 api
333333
getTestHistory: async (testId) => {
334334
try {
335-
return await contentApiRequest(`/test/history?testId=${encodeURIComponent(testId)}`);
335+
return await contentApiRequest(`/response/history?testId=${encodeURIComponent(testId)}`);
336336

337337
} catch (error) {
338338
console.log("Backend API not available, using localStorage (dev mode)...");
@@ -345,7 +345,7 @@ export const contentAPI = {
345345
//mypage 컨텐츠 히스토리 조회 api
346346
getMypage: async (userId, page, size) => {
347347
try {
348-
return await contentApiRequest(`/test/history?userId=${encodeURIComponent(userId)}&page=${page}&size=${size}`);
348+
return await contentApiRequest(`/response/history?userId=${encodeURIComponent(userId)}&page=${page}&size=${size}`);
349349
} catch (error) {
350350
console.log("Backend API not available, using localStorage (dev mode)...");
351351

0 commit comments

Comments
 (0)