feat: revenue cat
This commit is contained in:
+8
-4
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\AuthController;
|
||||
use App\Http\Controllers\BillingController;
|
||||
use App\Http\Controllers\CertificationController;
|
||||
use App\Http\Controllers\DeviceTokenController;
|
||||
use App\Http\Controllers\FollowController;
|
||||
@@ -13,6 +12,7 @@ use App\Http\Controllers\NotificationPreferenceController;
|
||||
use App\Http\Controllers\PostReviewsController;
|
||||
use App\Http\Controllers\PublicUserProfileController;
|
||||
use App\Http\Controllers\ReportController;
|
||||
use App\Http\Controllers\RevenueCatController;
|
||||
use App\Http\Controllers\SearchController;
|
||||
use App\Http\Controllers\StravaController;
|
||||
use App\Http\Controllers\UserBlockController;
|
||||
@@ -69,11 +69,15 @@ Route::middleware(['auth:sanctum', 'verified', 'not_suspended'])->group(function
|
||||
Route::patch('notification-preferences', [NotificationPreferenceController::class, 'update'])->middleware('throttle:account-action')->name('notification-preferences.update');
|
||||
});
|
||||
|
||||
Route::post('webhooks/revenuecat', [RevenueCatController::class, 'webhook'])
|
||||
->middleware('throttle:60,1')
|
||||
->name('revenuecat.webhook');
|
||||
|
||||
// Billing
|
||||
Route::middleware(['auth:sanctum', 'verified', 'not_suspended'])->prefix('billing')->group(function (): void {
|
||||
Route::get('products', [BillingController::class, 'products'])->name('billing.products');
|
||||
Route::post('products/{billingProduct}/checkout', [BillingController::class, 'checkout'])->middleware('throttle:account-action')->name('billing.checkout');
|
||||
Route::post('portal', [BillingController::class, 'portal'])->middleware('throttle:account-action')->name('billing.portal');
|
||||
Route::post('sync', [RevenueCatController::class, 'sync'])
|
||||
->middleware('throttle:account-action')
|
||||
->name('billing.sync');
|
||||
});
|
||||
|
||||
Route::middleware(['auth:sanctum', 'verified', 'not_suspended'])
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\AuthController;
|
||||
use App\Http\Controllers\BillingController;
|
||||
use App\Http\Controllers\StravaController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
@@ -11,4 +10,3 @@ Route::post('password/reset', [AuthController::class, 'resetPasswordFromView'])
|
||||
->middleware('throttle:6,1')
|
||||
->name('password.web-update');
|
||||
Route::get('strava/callback', [StravaController::class, 'redirectToMobileApp'])->name('strava.web-callback');
|
||||
Route::get('billing/return/{status}', [BillingController::class, 'redirectToMobileApp'])->name('billing.web-return');
|
||||
|
||||
Reference in New Issue
Block a user