/** * return the list of albums * @return \Illuminate\Http\JsonResponse */ public function albumList() { $albums = Album::orderBy('title')->get(); return response()->json($albums); }