|
@@ -45,6 +45,11 @@ export class PaymentsController extends BaseHttpController {
|
|
|
await this.httpService.callPaymentsServer(request, response, 'api/subscriptions/tiered', request.body)
|
|
|
}
|
|
|
|
|
|
+ @httpPost('/subscriptions/apple_iap_confirm', TYPES.SubscriptionTokenAuthMiddleware)
|
|
|
+ async appleIAPConfirm(request: Request, response: Response): Promise<void> {
|
|
|
+ await this.httpService.callPaymentsServer(request, response, 'api/subscriptions/apple_iap_confirm', request.body)
|
|
|
+ }
|
|
|
+
|
|
|
@all('/subscriptions(/*)?')
|
|
|
async subscriptions(request: Request, response: Response): Promise<void> {
|
|
|
await this.httpService.callPaymentsServer(request, response, request.path.replace('v1', 'api'), request.body)
|