fix: api-config.js의 남은 export 문법 완전 제거

🐛 해결된 문제:
- SyntaxError: Unexpected keyword 'export' (api-config.js:46)
- API 함수를 로드할 수 없는 문제

🔧 수정 내용:
- export function getAuthHeaders() → function getAuthHeaders()
- export async function testApiConnection() → async function testApiConnection()
- 모든 ES6 모듈 문법 완전 제거

 최종 결과:
- 모든 JavaScript 오류 해결
- window.apiCall 정상 로드
- 대시보드 완전 정상 작동

테스트: http://localhost:20000/pages/dashboard/group-leader.html
This commit is contained in:
Hyungi Ahn
2025-11-03 12:02:06 +09:00
parent e9d78e48a7
commit 3e992ad521

View File

@@ -43,7 +43,7 @@ function ensureAuthenticated() {
return token;
}
export function getAuthHeaders() {
function getAuthHeaders() {
const token = localStorage.getItem('token');
return {
'Content-Type': 'application/json',
@@ -117,7 +117,7 @@ console.log('🌐 Current Location:', {
});
// 🧪 API 연결 테스트 함수 (개발용)
export async function testApiConnection() {
async function testApiConnection() {
try {
console.log('🧪 API 연결 테스트 시작...');
const response = await fetch(`${API}/health`, {