Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
yanggyein
/
yanggyein
/
yang_ai
/
routes
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/yanggyein/yanggyein/yang_ai/routes/api.php
<?php use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; use App\Http\Controllers\PreventionController; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | is assigned the "api" middleware group. Enjoy building your API! | */ Route::middleware('auth:api')->get('/user', function (Request $request) { return $request->user(); }); Route::get('/prevention/ai/list/{toc}', [PreventionController::class, 'index'])->name('api.ai.list'); Route::get('/prevention/ai/show/{id}', [PreventionController::class, 'show'])->name('api.ai.show'); Route::patch('/prevention/ai/update/{id}', [PreventionController::class, 'update'])->name('api.ai.update'); Route::get('/prevention/ai/destroy/{id}', [PreventionController::class, 'destroy'])->name('api.ai.destroy');