Added webhook to capture incoming webhooks

This commit is contained in:
2023-05-06 21:48:46 +10:00
parent 013bb632d3
commit a32e8e9d05
3 changed files with 23 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
<?php
use App\Http\Controllers\{AdminController,CheckoutController,ProductController,ResellerServicesController};
use App\Http\Controllers\{AdminController,
CheckoutController,
ProductController,
ResellerServicesController,
WelcomeController};
/*
|--------------------------------------------------------------------------
@@ -30,4 +34,7 @@ Route::group(['middleware'=>['auth:api','role:reseller']], function() {
Route::group(['middleware'=>'auth:api'], function() {
Route::post('/u/checkout/fee/{o}',[CheckoutController::class,'fee'])
->where('o','[0-9]+');
});
});
Route::any('/intuit/webhook',[WelcomeController::class,'webhook'])
->where('o','[0-9]+');