context-path 대응 추가 수정

This commit is contained in:
현성필
2024-01-24 13:33:03 +09:00
parent be1053d832
commit 1a0a32d427
14 changed files with 3705 additions and 10 deletions
+5 -2
View File
@@ -8,13 +8,16 @@
class APIClient {
CLIENT_URL = 'mgmt/api/test.do';
CLIENT_URL = '/mgmt/api/test.do';
constructor(contextPath) {
window.globals = {};
this.variables = {};
this.abortController = null;
this.contextPath = contextPath || '/';
this.contextPath = document.querySelector('meta[name="context-path"]').getAttribute('content');
if (!this.contextPath) {
this.contextPath = '/';
}
}
getClientUrl() {