Skip to content

Commit ba20daf

Browse files
authored
Merge pull request #55 from DMU-DebugVisual/sunwoong
ApiService.js - config.js를 활용한 API 주소 전역화 리팩토링
2 parents ed5822e + 47758e0 commit ba20daf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/ide/services/ApiService.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
// ==============================================
22
// 📄 src/components/ide/services/ApiService.js
33
// ==============================================
4+
import config from '../../../config'; // 정확한 상대경로 사용
5+
46

57
/**
68
* 🌐 API 서비스 클래스 - 실제 API와 JSON Mock 하이브리드
79
*/
810
export class ApiService {
9-
static API_BASE_URL = 'http://13.209.72.114:8080/api/code';
11+
static API_BASE_URL = `${config.API_BASE_URL}/api/code`;
1012
static USE_REAL_API = true; // 🎛️ true로 설정하면 실제 API 먼저 시도
1113

1214
/**

0 commit comments

Comments
 (0)