Add subcription feature 3
This commit is contained in:
@@ -33,6 +33,7 @@ READ_ONLY_WHITELIST_PATTERNS = [
|
||||
r'^/api/v1/tenants/.*/procurement/ml/insights/.*', # Allow ML insights (supplier analysis, price forecasting)
|
||||
r'^/api/v1/tenants/.*/forecasting/ml/insights/.*', # Allow ML insights (rules generation)
|
||||
r'^/api/v1/tenants/.*/forecasting/operations/.*', # Allow forecasting operations
|
||||
r'^/api/v1/webhooks/.*', # Webhook endpoints - no tenant context
|
||||
]
|
||||
|
||||
|
||||
@@ -55,7 +56,7 @@ class ReadOnlyModeMiddleware(BaseHTTPMiddleware):
|
||||
try:
|
||||
async with httpx.AsyncClient(timeout=5.0) as client:
|
||||
response = await client.get(
|
||||
f"{self.tenant_service_url}/api/v1/subscriptions/{tenant_id}/status",
|
||||
f"{self.tenant_service_url}/api/v1/tenants/{tenant_id}/subscriptions/status",
|
||||
headers={"Authorization": authorization}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user