auth tests
This commit is contained in:
11
backend/routes/api/users.php
Normal file
11
backend/routes/api/users.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\UserController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
// Gestione utenti (sola lettura): area admin.
|
||||
Route::middleware('tier.admin')->group(function () {
|
||||
Route::get('users', [UserController::class, 'index']);
|
||||
// withTrashed: l'admin può ispezionare anche utenti cestinati/anonimizzati.
|
||||
Route::get('users/{user}', [UserController::class, 'show'])->withTrashed();
|
||||
});
|
||||
Reference in New Issue
Block a user