context-path 대응

This commit is contained in:
현성필
2024-01-23 14:44:00 +09:00
parent 1e059a8cf7
commit be1053d832
6 changed files with 81 additions and 37 deletions
@@ -35,12 +35,10 @@
</body>
<th:block layout:fragment="contentScript">
<!-- <script th:src="@{/plugins/apitestmanager/vendors.bundle.js}" defer></script>-->
<!-- <script th:src="@{/plugins/apitestmanager/app.bundle.js}" defer></script>-->
<script>
$(document).ajaxError(function (event, jqxhr, settings, exception) {
if (jqxhr.status === 401) {
window.location.href = '/';
window.location.href = '[[@{/}]]';
}
});
@@ -53,8 +51,9 @@
basePath: $(this).data('path')
});
});
const apiTester = new APITestManager(servers);
let options = {};
options.contextPath = '[[@{/}]]';
const apiTester = new APITestManager(servers, options);
});
</script>
</th:block>