Add subcription feature 6
This commit is contained in:
@@ -24,7 +24,8 @@ logger = logging.getLogger(__name__)
|
||||
READ_ONLY_WHITELIST_PATTERNS = [
|
||||
r'^/api/v1/users/me/delete/request$',
|
||||
r'^/api/v1/users/me/export.*$',
|
||||
r'^/api/v1/subscriptions/.*',
|
||||
r'^/api/v1/tenants/.*/subscription/.*', # All tenant subscription endpoints
|
||||
r'^/api/v1/registration/.*', # Registration flow endpoints
|
||||
r'^/api/v1/auth/.*', # Allow auth operations
|
||||
r'^/api/v1/tenants/register$', # Allow new tenant registration (no existing tenant context)
|
||||
r'^/api/v1/tenants/.*/orchestrator/run-daily-workflow$', # Allow workflow testing
|
||||
@@ -56,7 +57,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/tenants/{tenant_id}/subscriptions/status",
|
||||
f"{self.tenant_service_url}/api/v1/tenants/{tenant_id}/subscription/status",
|
||||
headers={"Authorization": authorization}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user