Add frontend loading imporvements
This commit is contained in:
@@ -39,6 +39,11 @@ PUBLIC_ROUTES = [
|
||||
"/api/v1/demo/sessions"
|
||||
]
|
||||
|
||||
# Routes accessible with demo session (no JWT required, just demo session header)
|
||||
DEMO_ACCESSIBLE_ROUTES = [
|
||||
"/api/v1/tenants/", # All tenant endpoints accessible in demo mode
|
||||
]
|
||||
|
||||
class AuthMiddleware(BaseHTTPMiddleware):
|
||||
"""
|
||||
Enhanced Authentication Middleware with Tenant Access Control
|
||||
|
||||
@@ -290,9 +290,9 @@ async def proxy_tenant_insights(request: Request, tenant_id: str = Path(...), pa
|
||||
|
||||
@router.api_route("/{tenant_id}/onboarding/{path:path}", methods=["GET", "POST", "OPTIONS"])
|
||||
async def proxy_tenant_onboarding(request: Request, tenant_id: str = Path(...), path: str = ""):
|
||||
"""Proxy tenant onboarding requests to sales service"""
|
||||
"""Proxy tenant onboarding requests to tenant service"""
|
||||
target_path = f"/api/v1/tenants/{tenant_id}/onboarding/{path}".rstrip("/")
|
||||
return await _proxy_to_sales_service(request, target_path)
|
||||
return await _proxy_to_tenant_service(request, target_path)
|
||||
|
||||
# ================================================================
|
||||
# TENANT-SCOPED TRAINING SERVICE ENDPOINTS
|
||||
|
||||
Reference in New Issue
Block a user