Add subcription feature 6
This commit is contained in:
@@ -176,7 +176,8 @@ class SubscriptionMiddleware(BaseHTTPMiddleware):
|
||||
r'/health.*',
|
||||
r'/metrics.*',
|
||||
r'/api/v1/auth/.*',
|
||||
r'/api/v1/subscriptions/.*', # Subscription management itself
|
||||
r'/api/v1/tenants/[^/]+/subscription/.*', # All tenant subscription endpoints
|
||||
r'/api/v1/registration/.*', # Registration flow endpoints
|
||||
r'/api/v1/tenants/[^/]+/members.*', # Basic tenant info
|
||||
r'/api/v1/webhooks/.*', # Webhook endpoints - no tenant context
|
||||
r'/docs.*',
|
||||
@@ -295,9 +296,9 @@ class SubscriptionMiddleware(BaseHTTPMiddleware):
|
||||
)
|
||||
|
||||
async with httpx.AsyncClient(timeout=timeout_config) as client:
|
||||
# Use fast cached tier endpoint
|
||||
# Use fast cached tier endpoint (new URL pattern)
|
||||
tier_response = await client.get(
|
||||
f"{settings.TENANT_SERVICE_URL}/api/v1/subscriptions/{tenant_id}/tier",
|
||||
f"{settings.TENANT_SERVICE_URL}/api/v1/tenants/{tenant_id}/subscription/tier",
|
||||
headers=headers
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user