get('/user', function (Request $request) { return $request->user(); }); Route::get('/categories', [CategoryController::class, 'index'])->name('api.category.index'); Route::get('/roles', [RoleController::class, 'index'])->name('api.role.index');