imporve features
This commit is contained in:
@@ -138,6 +138,7 @@ async def proxy_tenant_traffic(request: Request, tenant_id: str = Path(...), pat
|
||||
@router.api_route("/{tenant_id}/external/{path:path}", methods=["GET", "POST", "OPTIONS"])
|
||||
async def proxy_tenant_external(request: Request, tenant_id: str = Path(...), path: str = ""):
|
||||
"""Proxy tenant external service requests (v2.0 city-based optimized endpoints)"""
|
||||
# Route to external service with normal path structure
|
||||
target_path = f"/api/v1/tenants/{tenant_id}/external/{path}".rstrip("/")
|
||||
return await _proxy_to_external_service(request, target_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user