2026-06-11 22:08:47 +03:30
|
|
|
<?php
|
|
|
|
|
|
2026-07-05 16:43:34 +03:30
|
|
|
use App\Http\Controllers\Pargar\PargarInboundController;
|
2026-06-11 22:08:47 +03:30
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
2026-07-05 16:43:34 +03:30
|
|
|
Route::post('/login', [PargarInboundController::class, 'login']);
|
2026-06-11 22:08:47 +03:30
|
|
|
|
2026-07-05 16:43:34 +03:30
|
|
|
Route::middleware('pargar.auth')->group(function () {
|
|
|
|
|
Route::post('/customers', [PargarInboundController::class, 'upsertCustomers']);
|
|
|
|
|
Route::get('/orders', [PargarInboundController::class, 'listOrders']);
|
|
|
|
|
Route::post('/orders', [PargarInboundController::class, 'confirmOrders']);
|
|
|
|
|
Route::post('/documents', [PargarInboundController::class, 'storeDocuments']);
|
|
|
|
|
Route::post('/mande', [PargarInboundController::class, 'storeMande']);
|
|
|
|
|
Route::get('/GetCustomers', [PargarInboundController::class, 'listNewCustomers']);
|
|
|
|
|
Route::post('/CustomerConfirm', [PargarInboundController::class, 'confirmCustomers']);
|
2026-06-11 22:08:47 +03:30
|
|
|
});
|
|
|
|
|
|
2026-07-05 16:43:34 +03:30
|
|
|
Route::any('{any}', function () {
|
2026-06-11 22:08:47 +03:30
|
|
|
return response()->json([
|
2026-07-05 16:43:34 +03:30
|
|
|
'success' => false,
|
|
|
|
|
'message' => 'not found',
|
2026-06-11 22:08:47 +03:30
|
|
|
'data' => null,
|
2026-07-05 16:43:34 +03:30
|
|
|
], 404);
|
|
|
|
|
})->where('any', '.*');
|