NCORE_Smart_Firewall/routes/api.php

9 lines
186 B
PHP
Raw Normal View History

2024-12-19 05:53:50 +00:00
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
Route::get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:sanctum');