From d032caab01f7e2baf692ea418de8c0adc5470e2d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 10 Jul 2017 21:19:39 +0300 Subject: [PATCH] Multi-db fix for buy now buttons --- app/Http/routes.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Http/routes.php b/app/Http/routes.php index c0aa67eaa7..cb22b33193 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -68,10 +68,6 @@ Route::group(['middleware' => 'lookup:license'], function () { Route::get('claim_license', 'NinjaController@claim_license'); }); -Route::group(['middleware' => 'cors'], function () { - Route::match(['GET', 'POST', 'OPTIONS'], '/buy_now/{gateway_type?}', 'OnlinePaymentController@handleBuyNow'); -}); - Route::group(['middleware' => 'lookup:postmark'], function () { Route::post('/hook/email_bounced', 'AppController@emailBounced'); Route::post('/hook/email_opened', 'AppController@emailOpened'); @@ -79,6 +75,7 @@ Route::group(['middleware' => 'lookup:postmark'], function () { Route::group(['middleware' => 'lookup:account'], function () { Route::post('/payment_hook/{account_key}/{gateway_id}', 'OnlinePaymentController@handlePaymentWebhook'); + Route::match(['GET', 'POST', 'OPTIONS'], '/buy_now/{gateway_type?}', 'OnlinePaymentController@handleBuyNow'); }); //Route::post('/hook/bot/{platform?}', 'BotController@handleMessage');