2017-11-03 16:26:07 +11:00
|
|
|
<?php
|
|
|
|
|
2024-07-26 12:34:35 +10:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2023-05-13 21:20:56 +10:00
|
|
|
use Intuit\Controllers\Webhook;
|
|
|
|
|
2023-05-10 12:59:42 +09:00
|
|
|
use App\Http\Controllers\{AccountingController,
|
|
|
|
AdminController,
|
2023-05-06 21:48:46 +10:00
|
|
|
CheckoutController,
|
2024-07-26 12:34:35 +10:00
|
|
|
ProductController};
|
2018-04-10 21:23:13 +10:00
|
|
|
|
2017-11-03 16:26:07 +11:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| API Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2018-04-10 21:23:13 +10:00
|
|
|
| Here is where you can register API routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| is assigned the "api" middleware group. Enjoy building your API!
|
2017-11-03 16:26:07 +11:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2022-04-02 18:06:34 +11:00
|
|
|
// Wholesaler API calls
|
|
|
|
Route::group(['middleware'=>['auth:api','role:wholesaler']], function() {
|
|
|
|
Route::get('a/supplier_products',[ProductController::class,'api_supplier_products']);
|
|
|
|
});
|
|
|
|
|
2018-06-05 21:13:57 +10:00
|
|
|
Route::group(['middleware'=>'auth:api'], function() {
|
2024-08-10 22:17:21 +10:00
|
|
|
Route::any('/intuit/accounting/list',[AccountingController::class,'list']);
|
2023-05-06 21:48:46 +10:00
|
|
|
});
|
|
|
|
|
2023-05-13 21:20:56 +10:00
|
|
|
Route::any('/intuit/webhook',[Webhook::class,'webhook']);
|