13 lines
508 B
PHP
13 lines
508 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use Illuminate\Support\Facades\Route;
|
||
|
|
use App\Modules\Integration\Controllers\ProductSyncController;
|
||
|
|
use App\Modules\Integration\Controllers\OrderSyncController;
|
||
|
|
|
||
|
|
Route::prefix('api/v1/integration')
|
||
|
|
->middleware(['api', 'integration.tenant', 'auth:sanctum']) // integration.tenant middleware to identify tenant
|
||
|
|
->group(function () {
|
||
|
|
Route::post('products/upsert', [ProductSyncController::class, 'upsert']);
|
||
|
|
Route::post('orders', [OrderSyncController::class, 'store']);
|
||
|
|
});
|