Add subcription feature
This commit is contained in:
@@ -54,6 +54,18 @@ async def proxy_subscription_cancel(request: Request):
|
||||
target_path = "/api/v1/subscriptions/cancel"
|
||||
return await _proxy_to_tenant_service(request, target_path)
|
||||
|
||||
@router.api_route("/subscriptions/create-for-registration", methods=["POST", "OPTIONS"])
|
||||
async def proxy_create_for_registration(request: Request):
|
||||
"""Proxy create-for-registration request to tenant service"""
|
||||
target_path = "/api/v1/subscriptions/create-for-registration"
|
||||
return await _proxy_to_tenant_service(request, target_path)
|
||||
|
||||
@router.api_route("/payment-customers/create", methods=["POST", "OPTIONS"])
|
||||
async def proxy_payment_customer_create(request: Request):
|
||||
"""Proxy payment customer creation request to tenant service"""
|
||||
target_path = "/api/v1/payment-customers/create"
|
||||
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"""
|
||||
|
||||
Reference in New Issue
Block a user