• File: contragents.php
  • Full Path: /var/www/html/back/routes/api/contragents.php
  • File size: 716 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?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']);
});