This repository has been archived on 2024-05-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PriceyBotPanel/routes/api.php
T
2023-10-04 19:01:00 +11:00

20 lines
570 B
PHP

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});