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