Deployment vorbereitet mit URI-Prefix
This commit is contained in:
1 parent
b41c3bc3a6
commit
fa02a7ade0
11 files changed
+183
-22
No files matched your search
@@ -1,8 +1,10 @@
|
||||
const tenantCode = window.location.pathname.split('/')[1];
|
||||
const appUrl = window.CMBNET_APP_URL || ((path) => `/${String(path || '').replace(/^\/+/, '')}`);
|
||||
const tenantCode = window.CMBNET_TENANT || '';
|
||||
const apiBase = appUrl(`${tenantCode}/admin/api`);
|
||||
|
||||
async function loadBrokerStatus() {
|
||||
try {
|
||||
const response = await fetch(`/${tenantCode}/admin/api/broker/status`);
|
||||
const response = await fetch(`${apiBase}/broker/status`);
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to load status');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user