2026-02-06 11:56:29 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
use App\Modules\Integration\Controllers\ProductSyncController;
|
|
|
|
|
use App\Modules\Integration\Controllers\OrderSyncController;
|
2026-02-23 13:27:12 +08:00
|
|
|
use App\Modules\Integration\Controllers\VendingOrderSyncController;
|
2026-02-06 11:56:29 +08:00
|
|
|
|
|
|
|
|
Route::prefix('api/v1/integration')
|
2026-02-23 10:10:03 +08:00
|
|
|
->middleware(['api', 'throttle:integration', 'integration.tenant', 'auth:sanctum'])
|
2026-02-06 11:56:29 +08:00
|
|
|
->group(function () {
|
|
|
|
|
Route::post('products/upsert', [ProductSyncController::class, 'upsert']);
|
|
|
|
|
Route::post('orders', [OrderSyncController::class, 'store']);
|
2026-02-23 13:27:12 +08:00
|
|
|
Route::post('vending/orders', [VendingOrderSyncController::class, 'store']);
|
2026-02-06 11:56:29 +08:00
|
|
|
});
|