Deployment vorbereitet mit URI-Prefix

This commit is contained in:
concierge committed 2026-10-29 16:22:46 +01:00
1 parent b41c3bc3a6
commit fa02a7ade0
11 files changed
+183 -22

No files matched your search

+4 -2
View File
@@ -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');
}