2025-01-27 11:42:44 +01:00

14 lines
300 B
PHP

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
Route::get('/user', function (Request $request) {
return $request->user();
})->middleware('auth:sanctum');
use App\Http\Controllers\Api\ArticleController;
Route::post('/articles', [ArticleController::class, 'store']);