From 45fc21bd2e78c4e819063b9103e53aea9e81098e Mon Sep 17 00:00:00 2001 From: OhSeongRak Date: Thu, 19 Jun 2025 09:45:46 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20api.js=20->=20localhost=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/api.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/services/api.js b/src/services/api.js index 496ae7c..41b01d5 100644 --- a/src/services/api.js +++ b/src/services/api.js @@ -6,15 +6,14 @@ const getApiUrls = () => { const config = window.__runtime_config__ || {} return { GATEWAY_URL: config.GATEWAY_URL || 'http://20.1.2.3', - AUTH_URL: config.AUTH_URL || 'http://smarketing.20.249.184.228.nip.io/api/auth', - MEMBER_URL: config.MEMBER_URL || 'http://smarketing.20.249.184.228.nip.io/api/member', - STORE_URL: config.STORE_URL || 'http://smarketing.20.249.184.228.nip.io/api/store', - CONTENT_URL: config.CONTENT_URL || 'http://smarketing.20.249.184.228.nip.io/api/content', - MENU_URL: config.MENU_URL || 'http://smarketing.20.249.184.228.nip.io/api/menu', - // ⚠️ 수정: 매출 API는 store 서비스 (포트 8082) - SALES_URL: config.SALES_URL || 'http://smarketing.20.249.184.228.nip.io/api/sales', - // ⚠️ 수정: 추천 API는 ai-recommend 서비스 (포트 8084) - RECOMMEND_URL: config.RECOMMEND_URL || 'http://smarketing.20.249.184.228.nip.io/api/recommendations' + AUTH_URL: config.AUTH_URL || 'http://localhost:8081/api/auth', + MEMBER_URL: config.MEMBER_URL || 'http://localhost:8081/api/member', + STORE_URL: config.STORE_URL || 'http://localhost:8082/api/store', + CONTENT_URL: config.CONTENT_URL || 'http://localhost:8083/api/content', + MENU_URL: config.MENU_URL || 'http://localhost:8082/api/menu', + SALES_URL: config.SALES_URL || 'http://localhost:8082/api/sales', + RECOMMEND_URL: config.RECOMMEND_URL || 'http://localhost:8084/api/recommendations', + IMAGE_URL: config.IMAGE_URL || 'http://localhost:8082/api/images' } }