middleware('auth:sanctum'); } /** * Display a listing of the resource. */ public function index() { $words = Word::all(); return response()->json([ 'status' => true, 'words' => $words ]); } /** * Display the specified resource. */ public function show(Word $word) { return response()->json([ 'status' => true, 'words' => $word ]); } }