Files
boursecu_server/routes/pargar.php
T
2026-07-05 16:43:34 +03:30

25 lines
990 B
PHP

<?php
use App\Http\Controllers\Pargar\PargarInboundController;
use Illuminate\Support\Facades\Route;
Route::post('/login', [PargarInboundController::class, 'login']);
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']);
});
Route::any('{any}', function () {
return response()->json([
'success' => false,
'message' => 'not found',
'data' => null,
], 404);
})->where('any', '.*');