Mahdee Rajon  subception

File "integrations.php"

Full Path: /var/www/html/back/routes/api/integrations.php
File size: 711 bytes
MIME-type: text/x-php
Charset: utf-8

<?php


use App\Http\Controllers\Api\V1\IntegrationController;
use Illuminate\Support\Facades\Route;

Route::group(['prefix' => '/v1/integrations', 'middleware' => 'auth:sanctum'], function (): void {
    Route::get('/', [IntegrationController::class,'index']);
    Route::get('/{integrationId}', [IntegrationController::class,'show']);
    Route::post('update/{integrationId}', [IntegrationController::class,'update']);
    Route::post('create/{modelId}', [IntegrationController::class,'store']);
});

Route::group(['prefix' => '/v1/integrations',  'middleware' => \App\Middleware\VerifyIntegrationToken::class], function (): void {
    Route::post('/add-data', [IntegrationController::class, 'addData']);
});