File "contragents.php"
Full path: /var/www/html/back/.git/objects/96/contragents.php
File
size: 0.7 KB (716 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
declare(strict_types=1);
use App\Http\Controllers\Api\V1\ContragentsController;
use Illuminate\Support\Facades\Route;
Route::group(['prefix' => '/v1/contragents', 'middleware' => 'auth:sanctum'], function (): void {
Route::get('{modelID}/with-payments', [ContragentsController::class,'contragentsWithPayments']);
Route::get('{modelID}/list', [ContragentsController::class,'index']);
Route::get('{modelID}/{id}', [ContragentsController::class,'show']);
Route::post('{modelID}/create', [ContragentsController::class,'store']);
Route::post('{modelID}/{id}/update', [ContragentsController::class,'update']);
Route::delete('{modelID}/{id}', [ContragentsController::class,'destroy']);
});