Add user delete process
This commit is contained in:
@@ -35,6 +35,30 @@ async def proxy_plans(request: Request):
|
||||
target_path = "/plans"
|
||||
return await _proxy_to_tenant_service(request, target_path)
|
||||
|
||||
@router.api_route("/subscriptions/{tenant_id}/invoices", methods=["GET", "OPTIONS"])
|
||||
async def proxy_invoices(request: Request, tenant_id: str = Path(...)):
|
||||
"""Proxy invoices request to tenant service"""
|
||||
target_path = f"/api/v1/subscriptions/{tenant_id}/invoices"
|
||||
return await _proxy_to_tenant_service(request, target_path)
|
||||
|
||||
@router.api_route("/subscriptions/{tenant_id}/status", methods=["GET", "OPTIONS"])
|
||||
async def proxy_subscription_status(request: Request, tenant_id: str = Path(...)):
|
||||
"""Proxy subscription status request to tenant service"""
|
||||
target_path = f"/api/v1/subscriptions/{tenant_id}/status"
|
||||
return await _proxy_to_tenant_service(request, target_path)
|
||||
|
||||
@router.api_route("/subscriptions/cancel", methods=["POST", "OPTIONS"])
|
||||
async def proxy_subscription_cancel(request: Request):
|
||||
"""Proxy subscription cancellation request to tenant service"""
|
||||
target_path = "/api/v1/subscriptions/cancel"
|
||||
return await _proxy_to_tenant_service(request, target_path)
|
||||
|
||||
@router.api_route("/subscriptions/reactivate", methods=["POST", "OPTIONS"])
|
||||
async def proxy_subscription_reactivate(request: Request):
|
||||
"""Proxy subscription reactivation request to tenant service"""
|
||||
target_path = "/api/v1/subscriptions/reactivate"
|
||||
return await _proxy_to_tenant_service(request, target_path)
|
||||
|
||||
# ================================================================
|
||||
# PROXY HELPER FUNCTIONS
|
||||
# ================================================================
|
||||
|
||||
Reference in New Issue
Block a user