diff --git a/frontend/admin.html b/frontend/admin.html
index c5c3bba..a5af5f2 100644
--- a/frontend/admin.html
+++ b/frontend/admin.html
@@ -220,19 +220,6 @@
-
@@ -678,6 +665,22 @@
saveBtn.innerHTML = '권한 저장';
}
});
+
+ // API 스크립트 동적 로딩
+ const cacheBuster = Date.now() + Math.random() + Math.floor(Math.random() * 1000000);
+ const script = document.createElement('script');
+ script.src = `/static/js/api.js?v=20251025-2&cb=${cacheBuster}&t=${Date.now()}&r=${Math.random()}`;
+ script.setAttribute('cache-control', 'no-cache');
+ script.setAttribute('pragma', 'no-cache');
+ script.onload = function() {
+ console.log('✅ API 스크립트 로드 완료 (admin.html)');
+ // API 로드 후 초기화 시작
+ initializeAdmin();
+ };
+ script.onerror = function() {
+ console.error('❌ API 스크립트 로드 실패');
+ };
+ document.head.appendChild(script);