get('/user', function (Request $request) { return $request->user(); }); Route::apiResource('/clients', ClientsController::class, ['as' => 'api']); Route::apiResource('/categories', CategoriesController::class, ['as' => 'api']); Route::apiResource('/commandes', CommandesController::class, ['as' => 'api']); Route::apiResource('/produits', ProduitsController::class, ['as' => 'api']);