context-path 대응 추가 수정
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user