feat: revenue cat
CI / 🧪 Tests Laravel (push) Successful in 2m24s
CI / 🐳 Build & Push Image (push) Successful in 1m13s

This commit is contained in:
2026-08-12 16:00:11 +02:00
parent 31633cfd2c
commit 29e85589b0
55 changed files with 703 additions and 2363 deletions
+8 -4
View File
@@ -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'])