This commit is contained in:
Andras Bacsai 2023-08-15 16:28:38 +02:00
parent 56161e8e0d
commit 878db64878

View File

@ -175,11 +175,7 @@
}
});
if (is_cloud()) {
Route::get('/test', function () {
return 'OK';
});
Route::get('/waitlist/confirm', function () {
Route::get('/waitlist/confirm', function () {
$email = request()->get('email');
$confirmation_code = request()->get('confirmation_code');
ray($email, $confirmation_code);
@ -195,8 +191,8 @@
return redirect()->route('dashboard');
}
})->name('webhooks.waitlist.confirm');
Route::get('/waitlist/cancel', function () {
})->name('webhooks.waitlist.confirm');
Route::get('/waitlist/cancel', function () {
$email = request()->get('email');
$confirmation_code = request()->get('confirmation_code');
try {
@ -210,8 +206,8 @@
return redirect()->route('dashboard');
}
})->name('webhooks.waitlist.cancel');
Route::post('/payments/events', function () {
})->name('webhooks.waitlist.cancel');
Route::post('/payments/events', function () {
try {
$secret = config('coolify.lemon_squeezy_webhook_secret');
$payload = request()->collect();
@ -297,5 +293,4 @@
} finally {
return response('OK');
}
});
}
});