1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Multi-db fix for buy now buttons

This commit is contained in:
Hillel Coren 2017-07-10 21:19:39 +03:00
parent e73ed6967a
commit d032caab01

View File

@ -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');