LogViewer/code/routes/api.php
splin94@yandex.ru 3a4a328d80 -
2023-11-09 20:51:08 +00:00

22 lines
589 B
PHP
Executable File

<?php
use Illuminate\Http\Request;
use Illuminate\Routing\Router;
/** @var Router $router */
/*
|--------------------------------------------------------------------------
| 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!
|
*/
$router->get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:api');