api code global jain

This commit is contained in:
Abhishek Mali
2025-11-05 10:37:10 +05:30
commit 52fe7e2bec
2834 changed files with 1784903 additions and 0 deletions

11
routes/api/v1/child.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
use App\Http\Controllers\Api\V1\Access\UserController;
Route::group(['middleware' => 'auth:sanctum', 'as' => 'api.child.'], function () {
// Route::GET('passive', [UserController::class, 'index'])->name('index');
Route::POST('child', [UserController::class, 'storeChildUser'])->name('store');
Route::POST('child/{user}', [UserController::class, 'updateChildUser'])->name('update');
Route::GET('child/{user}', [UserController::class, 'showChildUser'])->name('show');
Route::DELETE('child/{user}', [UserController::class, 'destroyChildUser'])->name('destroy');
});