refactor: api.js
This commit is contained in:
parent
142a8206f3
commit
422e590e2b
@ -6,15 +6,15 @@ const getApiUrls = () => {
|
|||||||
const config = window.__runtime_config__ || {}
|
const config = window.__runtime_config__ || {}
|
||||||
return {
|
return {
|
||||||
GATEWAY_URL: config.GATEWAY_URL || 'http://20.1.2.3',
|
GATEWAY_URL: config.GATEWAY_URL || 'http://20.1.2.3',
|
||||||
AUTH_URL: config.AUTH_URL || 'http://localhost:8081/api/auth',
|
AUTH_URL: config.AUTH_URL || 'http://smarketing.20.249.184.228.nip.io/api/auth',
|
||||||
MEMBER_URL: config.MEMBER_URL || 'http://localhost:8081/api/member',
|
MEMBER_URL: config.MEMBER_URL || 'http://smarketing.20.249.184.228.nip.io/api/member',
|
||||||
STORE_URL: config.STORE_URL || 'http://localhost:8082/api/store',
|
STORE_URL: config.STORE_URL || 'http://smarketing.20.249.184.228.nip.io/api/store',
|
||||||
CONTENT_URL: config.CONTENT_URL || 'http://localhost:8083/api/content',
|
CONTENT_URL: config.CONTENT_URL || 'http://smarketing.20.249.184.228.nip.io/api/content',
|
||||||
MENU_URL: config.MENU_URL || 'http://localhost:8082/api/menu',
|
MENU_URL: config.MENU_URL || 'http://smarketing.20.249.184.228.nip.io/api/menu',
|
||||||
// ⚠️ 수정: 매출 API는 store 서비스 (포트 8082)
|
// ⚠️ 수정: 매출 API는 store 서비스 (포트 8082)
|
||||||
SALES_URL: config.SALES_URL || 'http://localhost:8082/api/sales',
|
SALES_URL: config.SALES_URL || 'http://smarketing.20.249.184.228.nip.io/api/sales',
|
||||||
// ⚠️ 수정: 추천 API는 ai-recommend 서비스 (포트 8084)
|
// ⚠️ 수정: 추천 API는 ai-recommend 서비스 (포트 8084)
|
||||||
RECOMMEND_URL: config.RECOMMEND_URL || 'http://localhost:8084/api/recommendations'
|
RECOMMEND_URL: config.RECOMMEND_URL || 'http://smarketing.20.249.184.228.nip.io/api/recommendations'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user